Skip to content

Commit 28fafba

Browse files
committed
fix(@angular-devkit/build-angular): downlevel with non-loose ECMA compliance
This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes angular#15673
1 parent 6cb9f4d commit 28fafba

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ async function processWorker(options: ProcessBundleOptions): Promise<void> {
6565
inputSourceMap: !manualSourceMaps && options.map !== undefined && JSON.parse(options.map),
6666
babelrc: false,
6767
// modules aren't needed since the bundles use webpacks custom module loading
68-
// loose generates more ES5-like code but does not strictly adhere to the ES2015 spec (Typescript is loose)
6968
// 'transform-typeof-symbol' generates slower code
70-
presets: [
71-
['@babel/preset-env', { modules: false, loose: true, exclude: ['transform-typeof-symbol'] }],
72-
],
69+
presets: [['@babel/preset-env', { modules: false, exclude: ['transform-typeof-symbol'] }]],
7370
minified: true,
7471
sourceMaps: options.sourceMaps,
7572
});

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8886,7 +8886,6 @@ sauce-connect-launcher@^1.2.4:
88868886

88878887
"sauce-connect-proxy@https://saucelabs.com/downloads/sc-4.5.4-linux.tar.gz":
88888888
version "0.0.0"
8889-
uid dc5efcd2be24ddb099a85b923d6e754754651fa8
88908889
resolved "https://saucelabs.com/downloads/sc-4.5.4-linux.tar.gz#dc5efcd2be24ddb099a85b923d6e754754651fa8"
88918890

88928891
saucelabs@^1.5.0:

0 commit comments

Comments
 (0)