Skip to content

Commit 77c4d4a

Browse files
alan-agius4vikerman
authored andcommitted
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 dffa70a commit 77c4d4a

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,10 @@ async function processWorker(options: ProcessBundleOptions): Promise<void> {
133133

134134
// Mangle downlevel code
135135
const result = minify(code, {
136-
compress: false,
136+
compress: true,
137137
ecma: 5,
138138
mangle: !manglingDisabled,
139139
safari10: true,
140-
toplevel: true,
141140
output: {
142141
ascii_only: true,
143142
webkit: true,

0 commit comments

Comments
 (0)