2017-02-22 13:13:21 -05:00
|
|
|
// #docregion
|
|
|
|
import nodeResolve from 'rollup-plugin-node-resolve'
|
2020-04-06 15:57:58 -04:00
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
2020-05-08 09:47:00 -04:00
|
|
|
import {terser} from 'rollup-plugin-terser'
|
2017-02-22 13:13:21 -05:00
|
|
|
|
|
|
|
//paths are relative to the execution path
|
|
|
|
export default {
|
2020-04-06 15:57:58 -04:00
|
|
|
input: 'app/main.js',
|
2019-03-14 03:58:43 -04:00
|
|
|
output: {
|
|
|
|
file: 'aot/dist/build.js', // output a single application bundle
|
|
|
|
format: 'iife',
|
|
|
|
sourcemap: true,
|
|
|
|
sourcemapFile: 'aot/dist/build.js.map'
|
|
|
|
},
|
2017-02-22 13:13:21 -05:00
|
|
|
plugins: [
|
|
|
|
nodeResolve({jsnext: true, module: true}),
|
|
|
|
commonjs({
|
|
|
|
include: ['node_modules/rxjs/**']
|
|
|
|
}),
|
2020-05-08 09:47:00 -04:00
|
|
|
terser()
|
2017-02-22 13:13:21 -05:00
|
|
|
]
|
|
|
|
}
|