build(bazel): Use local rollup & build-optimizer for ng_rollup_bundle (#28215)
The current build workflow depends on cross workspace dependency by installing angular-cli as a Bazel repository. This is not ideal because it introduces separate node_module directories other than the one installed by Angular through the yarn_install rule (ngdeps). This commit removes angular-cli from the Bazel workspace and installs rollup and @angular-devkit/build-optimizer locally. PR Close #28215
This commit is contained in:

committed by
Alex Rickabaugh

parent
73616ab237
commit
c1c87462fd
@ -1,10 +1,11 @@
|
||||
import nodeResolve from 'rollup-plugin-node-resolve';
|
||||
|
||||
export default {
|
||||
entry: 'dist/src/main.js',
|
||||
sourceMap: true,
|
||||
input: 'dist/src/main.js',
|
||||
output: {
|
||||
sourceMap: true,
|
||||
},
|
||||
treeshake: true,
|
||||
moduleName: 'main',
|
||||
plugins: [
|
||||
nodeResolve()
|
||||
]
|
||||
|
@ -4,10 +4,11 @@ import commonjs from 'rollup-plugin-commonjs';
|
||||
// a real app should make a common bundle for libraries instead of bundling them
|
||||
// in both the main module & the lazy module, but we don't care about size here
|
||||
export default {
|
||||
entry: 'dist/src/lazy.module.js',
|
||||
sourceMap: true,
|
||||
input: 'dist/src/lazy.module.js',
|
||||
output: {
|
||||
sourceMap: true,
|
||||
},
|
||||
treeshake: true,
|
||||
moduleName: 'lazy',
|
||||
plugins: [
|
||||
nodeResolve()
|
||||
]
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user