@angular-devkit/build-angular 0.803.22 → 0.803.23

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,19 +1,19 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "0.803.22",
3
+ "version": "0.803.23",
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.803.22",
11
- "@angular-devkit/build-optimizer": "0.803.22",
12
- "@angular-devkit/build-webpack": "0.803.22",
13
- "@angular-devkit/core": "8.3.22",
10
+ "@angular-devkit/architect": "0.803.23",
11
+ "@angular-devkit/build-optimizer": "0.803.23",
12
+ "@angular-devkit/build-webpack": "0.803.23",
13
+ "@angular-devkit/core": "8.3.23",
14
14
  "@babel/core": "7.7.5",
15
15
  "@babel/preset-env": "7.7.6",
16
- "@ngtools/webpack": "8.3.22",
16
+ "@ngtools/webpack": "8.3.23",
17
17
  "ajv": "6.10.2",
18
18
  "autoprefixer": "9.6.1",
19
19
  "browserslist": "4.8.3",
@@ -21,12 +21,12 @@
21
21
  "caniuse-lite": "1.0.30001019",
22
22
  "circular-dependency-plugin": "5.2.0",
23
23
  "clean-css": "4.2.1",
24
+ "coverage-istanbul-loader": "2.0.3",
24
25
  "copy-webpack-plugin": "5.1.1",
25
26
  "core-js": "3.2.1",
26
27
  "file-loader": "4.2.0",
27
28
  "find-cache-dir": "3.0.0",
28
29
  "glob": "7.1.4",
29
- "istanbul-instrumenter-loader": "3.0.1",
30
30
  "jest-worker": "24.9.0",
31
31
  "karma-source-map-support": "1.4.0",
32
32
  "less": "3.9.0",
@@ -53,7 +53,7 @@
53
53
  "style-loader": "1.0.0",
54
54
  "stylus": "0.54.5",
55
55
  "stylus-loader": "3.0.2",
56
- "tree-kill": "1.2.1",
56
+ "tree-kill": "1.2.2",
57
57
  "terser": "4.3.9",
58
58
  "terser-webpack-plugin": "1.4.3",
59
59
  "webpack": "4.39.2",
@@ -21,7 +21,6 @@ function getTestConfig(wco) {
21
21
  const { root, buildOptions, sourceRoot: include } = wco;
22
22
  const extraRules = [];
23
23
  const extraPlugins = [];
24
- // if (buildOptions.codeCoverage && CliConfig.fromProject()) {
25
24
  if (buildOptions.codeCoverage) {
26
25
  const codeCoverageExclude = buildOptions.codeCoverageExclude;
27
26
  const exclude = [
@@ -37,8 +36,8 @@ function getTestConfig(wco) {
37
36
  });
38
37
  }
39
38
  extraRules.push({
40
- test: /\.(js|ts)$/,
41
- loader: 'istanbul-instrumenter-loader',
39
+ test: /\.(jsx?|tsx?)$/,
40
+ loader: require.resolve('coverage-istanbul-loader'),
42
41
  options: { esModules: true },
43
42
  enforce: 'post',
44
43
  exclude,
@@ -66,11 +66,19 @@ function statsToString(json, statsConfig) {
66
66
  }
67
67
  }
68
68
  exports.statsToString = statsToString;
69
+ // TODO(#16193): Don't emit this warning in the first place rather than just suppressing it.
70
+ const ERRONEOUS_WARNINGS = [
71
+ /multiple assets emit different content.*3rdpartylicenses\.txt/i,
72
+ ];
69
73
  function statsWarningsToString(json, statsConfig) {
70
74
  const colors = statsConfig.colors;
71
75
  const rs = (x) => colors ? reset(x) : x;
72
76
  const y = (x) => colors ? bold(yellow(x)) : x;
73
- return rs('\n' + json.warnings.map((warning) => y(`WARNING in ${warning}`)).join('\n\n'));
77
+ return rs('\n' + json.warnings
78
+ .map((warning) => `${warning}`)
79
+ .filter((warning) => !ERRONEOUS_WARNINGS.some((erroneous) => erroneous.test(warning)))
80
+ .map((warning) => y(`WARNING in ${warning}`))
81
+ .join('\n\n'));
74
82
  }
75
83
  exports.statsWarningsToString = statsWarningsToString;
76
84
  function statsErrorsToString(json, statsConfig) {