@angular-devkit/build-angular 12.0.4 → 12.0.5

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,15 +1,15 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "12.0.4",
3
+ "version": "12.0.5",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
- "@angular-devkit/architect": "0.1200.4",
10
- "@angular-devkit/build-optimizer": "0.1200.4",
11
- "@angular-devkit/build-webpack": "0.1200.4",
12
- "@angular-devkit/core": "12.0.4",
9
+ "@angular-devkit/architect": "0.1200.5",
10
+ "@angular-devkit/build-optimizer": "0.1200.5",
11
+ "@angular-devkit/build-webpack": "0.1200.5",
12
+ "@angular-devkit/core": "12.0.5",
13
13
  "@babel/core": "7.14.3",
14
14
  "@babel/generator": "7.14.3",
15
15
  "@babel/plugin-transform-async-to-generator": "7.13.0",
@@ -19,7 +19,7 @@
19
19
  "@babel/template": "7.12.13",
20
20
  "@discoveryjs/json-ext": "0.5.2",
21
21
  "@jsdevtools/coverage-istanbul-loader": "3.0.5",
22
- "@ngtools/webpack": "12.0.4",
22
+ "@ngtools/webpack": "12.0.5",
23
23
  "ansi-colors": "4.1.1",
24
24
  "babel-loader": "8.2.2",
25
25
  "browserslist": "^4.9.1",
@@ -68,7 +68,7 @@
68
68
  "terser-webpack-plugin": "5.1.2",
69
69
  "text-table": "0.2.0",
70
70
  "tree-kill": "1.2.2",
71
- "webpack": "5.38.1",
71
+ "webpack": "5.39.1",
72
72
  "webpack-dev-middleware": "4.1.0",
73
73
  "webpack-dev-server": "3.11.2",
74
74
  "webpack-merge": "5.7.3",
@@ -10,9 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.getTestConfig = void 0;
11
11
  const glob = require("glob");
12
12
  const path = require("path");
13
+ const typescript_1 = require("typescript");
13
14
  const helpers_1 = require("../utils/helpers");
14
15
  function getTestConfig(wco) {
15
- const { buildOptions: { codeCoverage, codeCoverageExclude, main, sourceMap }, root, sourceRoot, } = wco;
16
+ const { buildOptions: { codeCoverage, codeCoverageExclude, main, sourceMap, webWorkerTsConfig }, root, sourceRoot, } = wco;
16
17
  const extraRules = [];
17
18
  const extraPlugins = [];
18
19
  if (codeCoverage) {
@@ -38,6 +39,7 @@ function getTestConfig(wco) {
38
39
  }
39
40
  return {
40
41
  mode: 'development',
42
+ target: wco.tsConfig.options.target === typescript_1.ScriptTarget.ES5 ? ['web', 'es5'] : 'web',
41
43
  resolve: {
42
44
  mainFields: ['es2015', 'browser', 'module', 'main'],
43
45
  },
@@ -47,6 +49,14 @@ function getTestConfig(wco) {
47
49
  },
48
50
  module: {
49
51
  rules: extraRules,
52
+ parser: webWorkerTsConfig === undefined
53
+ ? undefined
54
+ : {
55
+ javascript: {
56
+ worker: false,
57
+ url: false,
58
+ },
59
+ },
50
60
  },
51
61
  plugins: extraPlugins,
52
62
  optimization: {