@angular-devkit/build-angular 0.901.8 → 0.901.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "0.901.8",
3
+ "version": "0.901.9",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "experimental": true,
6
6
  "main": "src/index.js",
7
7
  "typings": "src/index.d.ts",
8
8
  "builders": "builders.json",
9
9
  "dependencies": {
10
- "@angular-devkit/architect": "0.901.8",
11
- "@angular-devkit/build-optimizer": "0.901.8",
12
- "@angular-devkit/build-webpack": "0.901.8",
13
- "@angular-devkit/core": "9.1.8",
10
+ "@angular-devkit/architect": "0.901.9",
11
+ "@angular-devkit/build-optimizer": "0.901.9",
12
+ "@angular-devkit/build-webpack": "0.901.9",
13
+ "@angular-devkit/core": "9.1.9",
14
14
  "@babel/core": "7.9.0",
15
15
  "@babel/generator": "7.9.3",
16
16
  "@babel/preset-env": "7.9.0",
17
17
  "@babel/template": "7.8.6",
18
18
  "@jsdevtools/coverage-istanbul-loader": "3.0.3",
19
- "@ngtools/webpack": "9.1.8",
19
+ "@ngtools/webpack": "9.1.9",
20
20
  "ajv": "6.12.0",
21
21
  "autoprefixer": "9.7.4",
22
22
  "babel-loader": "8.0.6",
@@ -60,7 +60,7 @@
60
60
  "stylus-loader": "3.0.2",
61
61
  "tree-kill": "1.2.2",
62
62
  "terser": "4.6.10",
63
- "terser-webpack-plugin": "2.3.5",
63
+ "terser-webpack-plugin": "3.0.3",
64
64
  "webpack": "4.42.0",
65
65
  "webpack-dev-middleware": "3.7.2",
66
66
  "webpack-dev-server": "3.11.0",
@@ -341,12 +341,13 @@ function getCommonConfig(wco) {
341
341
  // Name mangling is handled within the browser builder
342
342
  mangle: environment_options_1.allowMangle && buildOptions.platform !== 'server' && !differentialLoadingMode,
343
343
  };
344
+ const globalScriptsNames = globalScriptsByBundleName.map(s => s.bundleName);
344
345
  extraMinimizers.push(new TerserPlugin({
345
346
  sourceMap: scriptsSourceMap,
346
347
  parallel: utils_1.maxWorkers,
347
348
  cache: !environment_options_1.cachingDisabled && cache_path_1.findCachePath('terser-webpack'),
348
349
  extractComments: false,
349
- chunkFilter: (chunk) => !globalScriptsByBundleName.some(s => s.bundleName === chunk.name),
350
+ exclude: globalScriptsNames,
350
351
  terserOptions,
351
352
  }),
352
353
  // Script bundles are fully optimized here in one step since they are never downleveled.
@@ -356,7 +357,7 @@ function getCommonConfig(wco) {
356
357
  parallel: utils_1.maxWorkers,
357
358
  cache: !environment_options_1.cachingDisabled && cache_path_1.findCachePath('terser-webpack'),
358
359
  extractComments: false,
359
- chunkFilter: (chunk) => globalScriptsByBundleName.some(s => s.bundleName === chunk.name),
360
+ include: globalScriptsNames,
360
361
  terserOptions: {
361
362
  ...terserOptions,
362
363
  compress: environment_options_1.allowMinify && {