@angular-devkit/build-angular 20.3.39 → 20.3.41

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "20.3.39",
3
+ "version": "20.3.41",
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": "2.3.0",
10
- "@angular-devkit/architect": "0.2003.39",
11
- "@angular-devkit/build-webpack": "0.2003.39",
12
- "@angular-devkit/core": "20.3.39",
13
- "@angular/build": "20.3.39",
10
+ "@angular-devkit/architect": "0.2003.41",
11
+ "@angular-devkit/build-webpack": "0.2003.41",
12
+ "@angular-devkit/core": "20.3.41",
13
+ "@angular/build": "20.3.41",
14
14
  "@babel/core": "7.29.7",
15
15
  "@babel/generator": "7.28.3",
16
16
  "@babel/helper-annotate-as-pure": "7.27.3",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.28.3",
22
22
  "@babel/runtime": "7.28.3",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "20.3.39",
24
+ "@ngtools/webpack": "20.3.41",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "10.4.21",
27
27
  "babel-loader": "10.0.0",
@@ -55,7 +55,7 @@
55
55
  "terser": "5.43.1",
56
56
  "tree-kill": "1.2.2",
57
57
  "tslib": "2.8.1",
58
- "webpack": "5.105.0",
58
+ "webpack": "5.112.0",
59
59
  "webpack-dev-middleware": "7.4.2",
60
60
  "webpack-dev-server": "5.2.6",
61
61
  "webpack-merge": "6.0.1",
@@ -71,7 +71,7 @@
71
71
  "@angular/platform-browser": "^20.0.0",
72
72
  "@angular/platform-server": "^20.0.0",
73
73
  "@angular/service-worker": "^20.0.0",
74
- "@angular/ssr": "^20.3.39",
74
+ "@angular/ssr": "^20.3.41",
75
75
  "@web/test-runner": "^0.20.0",
76
76
  "browser-sync": "^3.0.2",
77
77
  "jest": "^29.5.0 || ^30.2.0",
@@ -11,10 +11,10 @@ exports.CommonJsUsageWarnPlugin = void 0;
11
11
  const node_path_1 = require("node:path");
12
12
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
13
13
  // Webpack doesn't export these so the deep imports can potentially break.
14
- const AMDDefineDependency = require('webpack/lib/dependencies/AMDDefineDependency');
15
- const CommonJsExportsDependency = require('webpack/lib/dependencies/CommonJsExportsDependency');
16
- const CommonJsRequireDependency = require('webpack/lib/dependencies/CommonJsRequireDependency');
17
- const CommonJsSelfReferenceDependency = require('webpack/lib/dependencies/CommonJsSelfReferenceDependency');
14
+ const AMDDefineDependency = require('webpack/lib/dependencies/amd/AMDDefineDependency');
15
+ const CommonJsExportsDependency = require('webpack/lib/dependencies/commonjs/CommonJsExportsDependency');
16
+ const CommonJsRequireDependency = require('webpack/lib/dependencies/commonjs/CommonJsRequireDependency');
17
+ const CommonJsSelfReferenceDependency = require('webpack/lib/dependencies/commonjs/CommonJsSelfReferenceDependency');
18
18
  class CommonJsUsageWarnPlugin {
19
19
  options;
20
20
  shownWarnings = new Set();
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.NamedChunksPlugin = void 0;
11
11
  const webpack_1 = require("webpack");
12
12
  // `ImportDependency` is not part of Webpack's depenencies typings.
13
- const ImportDependency = require('webpack/lib/dependencies/ImportDependency');
13
+ const ImportDependency = require('webpack/lib/dependencies/import/ImportDependency');
14
14
  const PLUGIN_NAME = 'named-chunks-plugin';
15
15
  /**
16
16
  * Webpack will not populate the chunk `name` property unless `webpackChunkName` magic comment is used.
@@ -206,7 +206,13 @@ function statsErrorsToString(json, statsConfig) {
206
206
  // This below cleans up the error from stacks.
207
207
  // See: https://github.com/webpack/webpack/issues/15980
208
208
  const index = error.message.search(/[\n\s]+at /);
209
- const message = statsConfig.errorStack || index === -1 ? error.message : error.message.substring(0, index);
209
+ let message = statsConfig.errorStack || index === -1 ? error.message : error.message.substring(0, index);
210
+ // Clean up error message paths when not verbose
211
+ // Ex: Execution of module code from module graph (./src/styles.scss.webpack[javascript/auto]!=!...) failed
212
+ // to Execution of module code from module graph (./src/styles.scss) failed
213
+ if (message && !statsConfig.errorDetails) {
214
+ message = message.replace(/([^(\s]+)\.webpack\[[^\]]+\]!=![^\s)]+/g, '$1');
215
+ }
210
216
  if (!/^error/i.test(message)) {
211
217
  output += r('Error: ');
212
218
  }
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = normalizeCacheOptions;
11
11
  const node_path_1 = require("node:path");
12
12
  /** Version placeholder is replaced during the build process with actual package version */
13
- const VERSION = '20.3.39';
13
+ const VERSION = '20.3.41';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&