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 #15673
  • Loading branch information
clydin authored and vikerman committed Sep 30, 2019
1 parent 102cd86 commit 941c6af
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -98,10 +98,9 @@ export async function process(options: ProcessBundleOptions): Promise<ProcessBun
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

0 comments on commit 941c6af

Please sign in to comment.