UNPKG

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