Skip to content

Commit b0d66f7

Browse files
committed
fix(@angular-devkit/build-angular): disable top level variable and function name mangling
Disables toplevel mangling and enables compression for es5 bundles. With compress enabled we reduce a further ~7Kb Closes: #15436
1 parent a35d908 commit b0d66f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@ async function processWorker(options: ProcessBundleOptions): Promise<void> {
132132

133133
// Mangle downlevel code
134134
const result = minify(code, {
135-
compress: false,
135+
compress: true,
136136
ecma: 5,
137137
mangle: true,
138138
safari10: true,
139-
toplevel: true,
140139
output: {
141140
ascii_only: true,
142141
webkit: true,

0 commit comments

Comments
 (0)