Commit aa627f7
refactor(@angular/build): only load chunk optimizer if enabled
The experimental chunk optimizer is now only imported if it is enabled
via its environment variable (`NG_BUILD_OPTIMIZE_CHUNKS=1`). This prevents
the loading of the rollup package as well as any transitive dependencies
when these packages will not be used by the build.
(cherry picked from commit c66782b)1 parent 6537ccd commit aa627f7
File tree
1 file changed
+1
-1
lines changed- packages/angular/build/src/builders/application
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments