@angular/build 21.0.0-next.1 → 21.0.0-next.2
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": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.2",
|
|
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.2100.0-next.
|
|
26
|
+
"@angular-devkit/architect": "0.2100.0-next.2",
|
|
27
27
|
"@babel/core": "7.28.3",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.27.3",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"https-proxy-agent": "7.0.6",
|
|
36
36
|
"istanbul-lib-instrument": "6.0.3",
|
|
37
37
|
"jsonc-parser": "3.3.1",
|
|
38
|
-
"listr2": "9.0.
|
|
38
|
+
"listr2": "9.0.3",
|
|
39
39
|
"magic-string": "0.30.18",
|
|
40
40
|
"mrmime": "2.0.1",
|
|
41
41
|
"parse5-html-rewriting-stream": "8.0.0",
|
|
42
42
|
"picomatch": "4.0.3",
|
|
43
43
|
"piscina": "5.1.3",
|
|
44
44
|
"rolldown": "1.0.0-beta.34",
|
|
45
|
-
"sass": "1.
|
|
45
|
+
"sass": "1.92.0",
|
|
46
46
|
"semver": "7.7.2",
|
|
47
47
|
"source-map-support": "0.5.21",
|
|
48
48
|
"tinyglobby": "0.2.14",
|
|
49
|
-
"vite": "7.1.
|
|
49
|
+
"vite": "7.1.4",
|
|
50
50
|
"watchpack": "2.4.4"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@angular/platform-browser": "^21.0.0-next.0",
|
|
61
61
|
"@angular/platform-server": "^21.0.0-next.0",
|
|
62
62
|
"@angular/service-worker": "^21.0.0-next.0",
|
|
63
|
-
"@angular/ssr": "^21.0.0-next.
|
|
63
|
+
"@angular/ssr": "^21.0.0-next.2",
|
|
64
64
|
"karma": "^6.4.0",
|
|
65
65
|
"less": "^4.2.0",
|
|
66
66
|
"ng-packagr": "^21.0.0-next.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"type": "git",
|
|
113
113
|
"url": "https://github.com/angular/angular-cli.git"
|
|
114
114
|
},
|
|
115
|
-
"packageManager": "pnpm@10.15.
|
|
115
|
+
"packageManager": "pnpm@10.15.1",
|
|
116
116
|
"engines": {
|
|
117
117
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
118
118
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
@@ -317,6 +317,7 @@ async function* serveWithVite(serverOptions, builderName, builderAction, context
|
|
|
317
317
|
// Setup server and start listening
|
|
318
318
|
const serverConfiguration = await (0, server_1.setupServer)(serverOptions, generatedFiles, assetFiles, browserOptions.preserveSymlinks, externalMetadata, ssrMode, prebundleTransformer, target, (0, internal_1.isZonelessApp)(polyfills), componentStyles, templateUpdates, browserOptions.loader, {
|
|
319
319
|
...browserOptions.define,
|
|
320
|
+
'ngJitMode': browserOptions.aot ? 'false' : 'true',
|
|
320
321
|
'ngHmrMode': browserOptions.templateUpdates ? 'true' : 'false',
|
|
321
322
|
}, extensions?.middleware, transformers?.indexHtml, thirdPartySourcemaps);
|
|
322
323
|
server = await createServer(serverConfiguration);
|
|
@@ -43,6 +43,16 @@ function createTestBedInitVirtualFile(providersFile, projectSourceRoot) {
|
|
|
43
43
|
});
|
|
44
44
|
`;
|
|
45
45
|
}
|
|
46
|
+
function adjustOutputHashing(hashing) {
|
|
47
|
+
switch (hashing) {
|
|
48
|
+
case schema_1.OutputHashing.All:
|
|
49
|
+
case schema_1.OutputHashing.Media:
|
|
50
|
+
// Ensure media is continued to be hashed to avoid overwriting of output media files
|
|
51
|
+
return schema_1.OutputHashing.Media;
|
|
52
|
+
default:
|
|
53
|
+
return schema_1.OutputHashing.None;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
async function getVitestBuildOptions(options, baseBuildOptions) {
|
|
47
57
|
const { workspaceRoot, projectSourceRoot, include, exclude, watch, tsConfig, providersFile } = options;
|
|
48
58
|
// Find test files
|
|
@@ -70,7 +80,7 @@ async function getVitestBuildOptions(options, baseBuildOptions) {
|
|
|
70
80
|
ssr: false,
|
|
71
81
|
prerender: false,
|
|
72
82
|
sourceMap: { scripts: true, vendor: false, styles: false },
|
|
73
|
-
outputHashing:
|
|
83
|
+
outputHashing: adjustOutputHashing(baseBuildOptions.outputHashing),
|
|
74
84
|
optimization: false,
|
|
75
85
|
tsConfig,
|
|
76
86
|
entryPoints,
|
|
@@ -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 = '21.0.0-next.
|
|
13
|
+
const VERSION = '21.0.0-next.2';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|