revert: build(aio): remove cli patches (#19702)
This reverts commit f0d530b4de38f71c759e42afc8f3d7531eb1b1fb. cli rc.8 reintroduces the node polyfill which causes size regression, so I'm putting the patch back in. -rw-r--r-- 1 iminar eng 14880 Nov 1 12:11 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1533 Nov 1 12:11 dist/inline.25600c3b48de18b97581.bundle.js -rw-r--r-- 1 iminar eng 486476 Nov 1 12:11 dist/main.d1292a34401056535884.bundle.js -rw-r--r-- 1 iminar eng 37070 Nov 1 12:11 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
This commit is contained in:

committed by
Matias Niemelä

parent
70edca3cec
commit
55092ace87
10
aio/tools/cli-patches/patch.js
Normal file
10
aio/tools/cli-patches/patch.js
Normal file
@ -0,0 +1,10 @@
|
||||
const fs = require('fs');
|
||||
const sh = require('shelljs');
|
||||
|
||||
const PATCH_LOCK = 'node_modules/@angular/cli/models/webpack-configs/.patched';
|
||||
|
||||
if (!fs.existsSync(PATCH_LOCK)) {
|
||||
sh.exec('patch -p0 -i tools/cli-patches/webpack-no-global.patch');
|
||||
sh.touch(PATCH_LOCK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user