
Previously, the `package.json` files added as boilerplate to docs example projects of type `systemjs` were incorrect/outdated. They contained unused dependencies and npm scripts and omitted used dependencies. This is not a big issue, because these examples are not offered as live StackBlitz examples or downloadable ZIP archives, but having incorrect `package.json` files is confusing and makes it more complicated to update these examples. This commit updates the `package.json` templates for the `systemjs` docs examples and other configuration files to include used dependencies (and remove unused ones). It also removes unused npm scripts. PR Close #36015
23 lines
555 B
JavaScript
23 lines
555 B
JavaScript
// #docregion
|
|
import nodeResolve from 'rollup-plugin-node-resolve'
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
import uglify from 'rollup-plugin-uglify'
|
|
|
|
//paths are relative to the execution path
|
|
export default {
|
|
input: 'app/main.js',
|
|
output: {
|
|
file: 'aot/dist/build.js', // output a single application bundle
|
|
format: 'iife',
|
|
sourcemap: true,
|
|
sourcemapFile: 'aot/dist/build.js.map'
|
|
},
|
|
plugins: [
|
|
nodeResolve({ jsnext: true, module: true }),
|
|
commonjs({
|
|
include: ['node_modules/rxjs/**']
|
|
}),
|
|
uglify()
|
|
]
|
|
}
|