-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrollup.config.js
40 lines (38 loc) · 961 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import typescript from '@rollup/plugin-typescript';
import pkg from './package.json';
const externals = Object.keys(pkg.dependencies);
export default [{
input: 'src/aurelia-loader-webpack.ts',
output: [
{ file: `dist/amd/${pkg.name}.js`, format: 'amd', amd: { id: pkg.name } },
{ file: `dist/commonjs/${pkg.name}.js`, format: 'cjs' },
{ file: `dist/native-modules/${pkg.name}.js`, format: 'es' },
],
plugins: [
typescript()
],
external: externals,
}, {
input: 'src/aurelia-loader-webpack.ts',
output: [
{ file: `dist/es2015/${pkg.name}.js`, format: 'es' },
{ file: `dist/es2017/${pkg.name}.js`, format: 'es' },
],
plugins: [
typescript({
target: 'es2015'
})
],
external: externals,
}, {
input: 'src/aurelia-loader-webpack.ts',
output: [
{ file: `dist/es2017/${pkg.name}.js`, format: 'es' },
],
plugins: [
typescript({
target: 'es2017'
})
],
external: externals,
}];