Skip to content
Permalink
Browse files

fix(build): adjust umd build, add umd-es2015

  • Loading branch information...
bigopon committed Feb 4, 2019
1 parent b3b08e7 commit 342c02322f6e4688acbd5709769b0b3ffad8d26a
Showing with 87 additions and 42 deletions.
  1. +87 −42 rollup.config.js
@@ -1,45 +1,90 @@
import typescript from 'rollup-plugin-typescript2';

export default {
input: './src/aurelia-dialog.ts',
external: [
'aurelia-framework',
'aurelia-binding',
'aurelia-templating',
'aurelia-dependency-injection',
'aurelia-pal'
],
output: [
{
file: 'dist/umd/aurelia-dialog.js',
format: 'umd',
name: 'au.dialog',
globals: {
'aurelia-framework': 'au',
'aurelia-binding': 'au',
'aurelia-templating': 'au',
'aurelia-dependency-injection': 'au',
'aurelia-pal': 'au'
},
esModule: false
}
],
inlineDynamicImports: true,
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'esnext',
outDir: undefined,
target: 'es2015',
declaration: false,
removeComments: true
export default [
{
input: './src/aurelia-dialog.ts',
external: [
'aurelia-framework',
'aurelia-binding',
'aurelia-templating',
'aurelia-dependency-injection',
'aurelia-pal'
],
output: [
{
file: 'dist/umd/aurelia-dialog.js',
format: 'umd',
name: 'au.dialog',
globals: {
'aurelia-framework': 'au',
'aurelia-binding': 'au',
'aurelia-templating': 'au',
'aurelia-dependency-injection': 'au',
'aurelia-pal': 'au'
},
include: [
'src'
]
},
cacheRoot: '.rollupcache'
})
]
}
esModule: false
}
],
inlineDynamicImports: true,
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'esnext',
outDir: undefined,
target: 'es5',
declaration: false,
removeComments: true
},
include: [
'src'
]
},
cacheRoot: '.rollupcache'
})
]
},
{
input: './src/aurelia-dialog.ts',
external: [
'aurelia-framework',
'aurelia-binding',
'aurelia-templating',
'aurelia-dependency-injection',
'aurelia-pal'
],
output: [
{
file: 'dist/umd-es2015/aurelia-dialog.js',
format: 'umd',
name: 'au.dialog',
globals: {
'aurelia-framework': 'au',
'aurelia-binding': 'au',
'aurelia-templating': 'au',
'aurelia-dependency-injection': 'au',
'aurelia-pal': 'au'
},
esModule: false
}
],
inlineDynamicImports: true,
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'esnext',
outDir: undefined,
target: 'es2015',
declaration: false,
removeComments: true
},
include: [
'src'
]
},
cacheRoot: '.rollupcache'
})
]
}
]

0 comments on commit 342c023

Please sign in to comment.
You can’t perform that action at this time.