@angular-devkit/build-angular 13.0.3 → 13.0.4

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": "13.0.3",
3
+ "version": "13.0.4",
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
9
  "@ampproject/remapping": "1.0.1",
10
- "@angular-devkit/architect": "0.1300.3",
11
- "@angular-devkit/build-webpack": "0.1300.3",
12
- "@angular-devkit/core": "13.0.3",
10
+ "@angular-devkit/architect": "0.1300.4",
11
+ "@angular-devkit/build-webpack": "0.1300.4",
12
+ "@angular-devkit/core": "13.0.4",
13
13
  "@babel/core": "7.15.8",
14
14
  "@babel/generator": "7.15.8",
15
15
  "@babel/helper-annotate-as-pure": "7.15.4",
@@ -20,7 +20,7 @@
20
20
  "@babel/runtime": "7.15.4",
21
21
  "@babel/template": "7.15.4",
22
22
  "@discoveryjs/json-ext": "0.5.5",
23
- "@ngtools/webpack": "13.0.3",
23
+ "@ngtools/webpack": "13.0.4",
24
24
  "ansi-colors": "4.1.1",
25
25
  "babel-loader": "8.2.3",
26
26
  "babel-plugin-istanbul": "6.1.1",
@@ -199,7 +199,13 @@ exports.default = (0, babel_loader_1.custom)(() => {
199
199
  // `@ampproject/remapping` source map objects but both are compatible with Webpack.
200
200
  // This method for merging is used because it provides more accurate output
201
201
  // and is faster while using less memory.
202
- result.map = (0, remapping_1.default)([result.map, inputSourceMap], () => null);
202
+ result.map = {
203
+ // Convert the SourceMap back to simple plain object.
204
+ // This is needed because otherwise code-coverage will fail with `don't know how to turn this value into a node`
205
+ // Which is thrown by Babel if it is invoked again from `istanbul-lib-instrument`.
206
+ // https://github.com/babel/babel/blob/780aa48d2a34dc55f556843074b6aed45e7eabeb/packages/babel-types/src/converters/valueToNode.ts#L115-L130
207
+ ...(0, remapping_1.default)([result.map, inputSourceMap], () => null),
208
+ };
203
209
  }
204
210
  return result;
205
211
  },
@@ -29,6 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  const nodePath = __importStar(require("path"));
30
30
  const load_esm_1 = require("../../utils/load-esm");
31
31
  function localizeExtractLoader(content, map) {
32
+ // This loader is not cacheable due to how message extraction works.
33
+ // Extracted messages are not part of webpack pipeline and hence they cannot be retrieved from cache.
34
+ // TODO: We should investigate in the future on making this deterministic and more cacheable.
35
+ this.cacheable(false);
32
36
  const options = this.getOptions();
33
37
  const callback = this.async();
34
38
  extract(this, content, map, options).then(() => {
@@ -102,7 +102,7 @@ exports.isPolyfillsEntry = isPolyfillsEntry;
102
102
  function getWatchOptions(poll) {
103
103
  return {
104
104
  poll,
105
- ignored: poll === undefined ? '**/$_lazy_route_resources' : 'node_modules/**',
105
+ ignored: poll === undefined ? '**/$_lazy_route_resources' : '**/node_modules/**',
106
106
  };
107
107
  }
108
108
  exports.getWatchOptions = getWatchOptions;