Skip to content

Commit 651d1d2

Browse files
committed
fix(@angular-devkit/build-angular): update webpack to 5.112.0
1 parent dc84625 commit 651d1d2

6 files changed

Lines changed: 350 additions & 160 deletions

File tree

‎packages/angular_devkit/build_angular/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"tinyglobby": "0.2.15",
5656
"tree-kill": "1.2.2",
5757
"tslib": "2.8.1",
58-
"webpack": "5.105.2",
58+
"webpack": "5.112.0",
5959
"webpack-dev-middleware": "7.4.5",
6060
"webpack-dev-server": "5.2.6",
6161
"webpack-merge": "6.0.1",

‎packages/angular_devkit/build_angular/src/builders/browser/specs/web-worker_spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('Browser Builder Web Worker support', () => {
124124
);
125125
expect(workerContent).toContain('hello from worker');
126126
expect(workerContent).toContain('bar');
127-
expect(workerContent).toContain('"hello"===o&&postMessage');
127+
expect(workerContent).toContain('"hello"===e&&postMessage');
128128

129129
// Main bundle should reference hashed worker bundle.
130130
const mainBundle = host.fileMatchExists(outputPath, /main\.[0-9a-f]{16}\.js/) as string;

‎packages/angular_devkit/build_angular/src/tools/webpack/utils/stats.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,16 @@ export function statsErrorsToString(
222222
// This below cleans up the error from stacks.
223223
// See: https://github.com/webpack/webpack/issues/15980
224224
const index = error.message.search(/[\n\s]+at /);
225-
const message =
225+
let message =
226226
statsConfig.errorStack || index === -1 ? error.message : error.message.substring(0, index);
227227

228+
// Clean up error message paths when not verbose
229+
// Ex: Execution of module code from module graph (./src/styles.scss.webpack[javascript/auto]!=!...) failed
230+
// to Execution of module code from module graph (./src/styles.scss) failed
231+
if (message && !statsConfig.errorDetails) {
232+
message = message.replace(/([^(\s]+)\.webpack\[[^\]]+\]!=![^\s)]+/g, '$1');
233+
}
234+
228235
if (!/^error/i.test(message)) {
229236
output += r('Error: ');
230237
}

‎packages/angular_devkit/build_webpack/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"@angular-devkit/core": "workspace:0.0.0-PLACEHOLDER",
2424
"@ngtools/webpack": "workspace:0.0.0-PLACEHOLDER",
25-
"webpack": "5.105.2",
25+
"webpack": "5.112.0",
2626
"webpack-dev-server": "5.2.6"
2727
},
2828
"peerDependencies": {

‎packages/ngtools/webpack/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@angular/compiler": "21.2.12",
3131
"@angular/compiler-cli": "21.2.12",
3232
"typescript": "5.9.3",
33-
"webpack": "5.105.2"
33+
"webpack": "5.112.0"
3434
}
3535
}

0 commit comments

Comments
 (0)