Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): downlevel with non-loose ECMA com…
Browse files Browse the repository at this point in the history
…pliance

This ensures that the ES5 bundles operate consistently with the ES2015+ bundles.

Fixes angular#15673
  • Loading branch information
clydin committed Sep 27, 2019
1 parent 3af79b9 commit d839aa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ export async function processAsync(options: ProcessBundleOptions): Promise<Proce
inputSourceMap: !manualSourceMaps && options.map !== undefined && JSON.parse(options.map),
babelrc: false,
// modules aren't needed since the bundles use webpack's custom module loading
// loose generates more ES5-like code but does not strictly adhere to the ES2015 spec (Typescript is loose)
// 'transform-typeof-symbol' generates slower code
presets: [
['@babel/preset-env', { modules: false, loose: true, exclude: ['transform-typeof-symbol'] }],
['@babel/preset-env', { modules: false, exclude: ['transform-typeof-symbol'] }],
],
minified: options.optimize,
// `false` ensures it is disabled and prevents large file warnings
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8959,7 +8959,6 @@ sauce-connect-launcher@^1.2.4:

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

saucelabs@^1.5.0:
Expand Down

0 comments on commit d839aa8

Please sign in to comment.