Skip to content

Commit

Permalink
fix(build): adjust umd build, add umd-es2015
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Feb 7, 2019
1 parent 306b935 commit 895b149
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default [{
format: 'es'
},
{
file: `dist/umd/${entryName}.js`,
file: `dist/umd-es2015/${entryName}.js`,
format: 'umd',
name: 'au.validation',
globals: {
Expand Down Expand Up @@ -77,6 +77,18 @@ export default [{
{ file: `dist/commonjs/${entryName}.js`, format: 'cjs' },
{ file: `dist/amd/${entryName}.js`, format: 'amd', amd: { id: entryName } },
{ file: `dist/native-modules/${entryName}.js`, format: 'es' },
{ file: `dist/umd/${entryName}.js`,
format: 'umd',
name: 'au.validation',
globals: {
'aurelia-binding': 'au',
'aurelia-templating': 'au',
'aurelia-dependency-injection': "au",
"aurelia-logging": "au.LogManager",
"aurelia-pal": "au",
"aurelia-task-queue": "au",
}
},
{ file: `dist/system/${entryName}.js`, format: 'system' }
],
plugins: [
Expand All @@ -85,7 +97,8 @@ export default [{
// tsconfig: undefined,
tsconfigOverride: {
compilerOptions: {
module: 'es2015'
module: 'es2015',
target: 'es5'
},
include: ['src'],
exclude: undefined
Expand Down

0 comments on commit 895b149

Please sign in to comment.