Skip to content

Commit 988faa6

Browse files
authored
build: speed up TS compilations and type bundling by removing locale files (#24995)
Removing the locale files will help us reduce Bazel action inputs and therefore speed up compilations/type bundling because the bazel sandbox would not need as much files to be sandboxed/symlinked. More info can be found here: angular/angular#46187
1 parent d74f86f commit 988faa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/postinstall/apply-patches.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function applyPatches() {
5555
// Switches the devmode output for Angular Bazel to ES2020 target and module.
5656
applyPatch(path.join(__dirname, './devmode-es2020-bazel.patch'));
5757

58+
// Similar to the `rxjs` performance improvement below, see:
59+
// https://github.com/angular/angular/pull/46187.
60+
shelljs.rm('-rf', ['node_modules/@angular/common/locales']);
61+
5862
// More info in https://github.com/angular/angular/pull/33786
5963
shelljs.rm('-rf', [
6064
'node_modules/rxjs/add/',

0 commit comments

Comments
 (0)