Skip to content

Commit f96a58e

Browse files
clydinvikerman
authored andcommitted
fix(@angular-devkit/build-angular): downlevel with non-loose ECMA compliance
This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes #15673
1 parent dba261c commit f96a58e

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
@@ -98,10 +98,9 @@ export async function process(options: ProcessBundleOptions): Promise<ProcessBun
9898
inputSourceMap: !manualSourceMaps && options.map !== undefined && JSON.parse(options.map),
9999
babelrc: false,
100100
// modules aren't needed since the bundles use webpack's custom module loading
101-
// loose generates more ES5-like code but does not strictly adhere to the ES2015 spec (Typescript is loose)
102101
// 'transform-typeof-symbol' generates slower code
103102
presets: [
104-
['@babel/preset-env', { modules: false, loose: true, exclude: ['transform-typeof-symbol'] }],
103+
['@babel/preset-env', { modules: false, exclude: ['transform-typeof-symbol'] }],
105104
],
106105
minified: options.optimize,
107106
// `false` ensures it is disabled and prevents large file warnings

0 commit comments

Comments
 (0)