@angular/build 18.2.7 → 18.2.8
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/build",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.8",
|
|
4
4
|
"description": "Official build system for Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular CLI",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"builders": "builders.json",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ampproject/remapping": "2.3.0",
|
|
26
|
-
"@angular-devkit/architect": "0.1802.
|
|
26
|
+
"@angular-devkit/architect": "0.1802.8",
|
|
27
27
|
"@babel/core": "7.25.2",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.24.7",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
@@ -83,10 +83,7 @@ async function optimizeChunks(original, sourcemap) {
|
|
|
83
83
|
const result = await bundle.generate({
|
|
84
84
|
compact: true,
|
|
85
85
|
sourcemap,
|
|
86
|
-
chunkFileNames(chunkInfo) {
|
|
87
|
-
// Do not add hash to file name if already present
|
|
88
|
-
return /-[a-zA-Z0-9]{8}$/.test(chunkInfo.name) ? '[name].js' : '[name]-[hash].js';
|
|
89
|
-
},
|
|
86
|
+
chunkFileNames: (chunkInfo) => `${chunkInfo.name.replace(/-[a-zA-Z0-9]{8}$/, '')}-[hash].js`,
|
|
90
87
|
});
|
|
91
88
|
optimizedOutput = result.output;
|
|
92
89
|
}
|
|
@@ -74,6 +74,12 @@ async function* serveWithVite(serverOptions, builderName, builderAction, context
|
|
|
74
74
|
browserOptions.ssr = true;
|
|
75
75
|
// https://nodejs.org/api/process.html#processsetsourcemapsenabledval
|
|
76
76
|
process.setSourceMapsEnabled(true);
|
|
77
|
+
if (browserOptions.progress !== false) {
|
|
78
|
+
// This is a workaround for https://github.com/angular/angular-cli/issues/28336, which is caused by the interaction between `zone.js` and `listr2`.
|
|
79
|
+
process.once('SIGINT', () => {
|
|
80
|
+
process.kill(process.pid);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
77
83
|
}
|
|
78
84
|
// Set all packages as external to support Vite's prebundle caching
|
|
79
85
|
browserOptions.externalPackages = serverOptions.prebundle;
|
|
@@ -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 = '18.2.
|
|
13
|
+
const VERSION = '18.2.8';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|