@angular-devkit/build-angular 17.2.0 → 17.2.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 +5 -5
- package/src/builders/application/schema.json +2 -2
- package/src/builders/browser/schema.json +4 -4
- package/src/builders/browser-esbuild/schema.json +2 -2
- package/src/builders/server/schema.json +4 -4
- package/src/tools/esbuild/load-result-cache.js +7 -4
- package/src/tools/vite/angular-memory-plugin.js +5 -2
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.2",
|
|
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.2.1",
|
|
10
|
-
"@angular-devkit/architect": "0.1702.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1702.
|
|
12
|
-
"@angular-devkit/core": "17.2.
|
|
10
|
+
"@angular-devkit/architect": "0.1702.2",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1702.2",
|
|
12
|
+
"@angular-devkit/core": "17.2.2",
|
|
13
13
|
"@babel/core": "7.23.9",
|
|
14
14
|
"@babel/generator": "7.23.6",
|
|
15
15
|
"@babel/helper-annotate-as-pure": "7.22.5",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@babel/preset-env": "7.23.9",
|
|
21
21
|
"@babel/runtime": "7.23.9",
|
|
22
22
|
"@discoveryjs/json-ext": "0.5.7",
|
|
23
|
-
"@ngtools/webpack": "17.2.
|
|
23
|
+
"@ngtools/webpack": "17.2.2",
|
|
24
24
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
25
25
|
"ansi-colors": "4.1.3",
|
|
26
26
|
"autoprefixer": "10.4.17",
|
|
@@ -572,11 +572,11 @@
|
|
|
572
572
|
"properties": {
|
|
573
573
|
"replace": {
|
|
574
574
|
"type": "string",
|
|
575
|
-
"pattern": "\\.(([cm]?
|
|
575
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
576
576
|
},
|
|
577
577
|
"with": {
|
|
578
578
|
"type": "string",
|
|
579
|
-
"pattern": "\\.(([cm]?
|
|
579
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
"additionalProperties": false,
|
|
@@ -473,11 +473,11 @@
|
|
|
473
473
|
"properties": {
|
|
474
474
|
"src": {
|
|
475
475
|
"type": "string",
|
|
476
|
-
"pattern": "\\.(([cm]?
|
|
476
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
477
477
|
},
|
|
478
478
|
"replaceWith": {
|
|
479
479
|
"type": "string",
|
|
480
|
-
"pattern": "\\.(([cm]?
|
|
480
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
483
|
"additionalProperties": false,
|
|
@@ -488,11 +488,11 @@
|
|
|
488
488
|
"properties": {
|
|
489
489
|
"replace": {
|
|
490
490
|
"type": "string",
|
|
491
|
-
"pattern": "\\.(([cm]?
|
|
491
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
492
492
|
},
|
|
493
493
|
"with": {
|
|
494
494
|
"type": "string",
|
|
495
|
-
"pattern": "\\.(([cm]?
|
|
495
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
498
|
"additionalProperties": false,
|
|
@@ -483,11 +483,11 @@
|
|
|
483
483
|
"properties": {
|
|
484
484
|
"replace": {
|
|
485
485
|
"type": "string",
|
|
486
|
-
"pattern": "\\.(([cm]?
|
|
486
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
487
487
|
},
|
|
488
488
|
"with": {
|
|
489
489
|
"type": "string",
|
|
490
|
-
"pattern": "\\.(([cm]?
|
|
490
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
493
|
"additionalProperties": false,
|
|
@@ -270,11 +270,11 @@
|
|
|
270
270
|
"properties": {
|
|
271
271
|
"src": {
|
|
272
272
|
"type": "string",
|
|
273
|
-
"pattern": "\\.(([cm]?
|
|
273
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
274
274
|
},
|
|
275
275
|
"replaceWith": {
|
|
276
276
|
"type": "string",
|
|
277
|
-
"pattern": "\\.(([cm]?
|
|
277
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
"additionalProperties": false,
|
|
@@ -285,11 +285,11 @@
|
|
|
285
285
|
"properties": {
|
|
286
286
|
"replace": {
|
|
287
287
|
"type": "string",
|
|
288
|
-
"pattern": "\\.(([cm]?
|
|
288
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
289
289
|
},
|
|
290
290
|
"with": {
|
|
291
291
|
"type": "string",
|
|
292
|
-
"pattern": "\\.(([cm]?
|
|
292
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
"additionalProperties": false,
|
|
@@ -54,13 +54,16 @@ class MemoryLoadResultCache {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
invalidate(path) {
|
|
57
|
-
const
|
|
57
|
+
const affectedPaths = this.#fileDependencies.get(path);
|
|
58
58
|
let found = false;
|
|
59
|
-
if (
|
|
60
|
-
|
|
59
|
+
if (affectedPaths) {
|
|
60
|
+
for (const affected of affectedPaths) {
|
|
61
|
+
if (this.#loadResults.delete(affected)) {
|
|
62
|
+
found = true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
61
65
|
this.#fileDependencies.delete(path);
|
|
62
66
|
}
|
|
63
|
-
found ||= this.#loadResults.delete(path);
|
|
64
67
|
return found;
|
|
65
68
|
}
|
|
66
69
|
get watchFiles() {
|
|
@@ -42,13 +42,16 @@ function createAngularMemoryPlugin(options) {
|
|
|
42
42
|
return (0, node_path_1.join)(virtualProjectRoot, source);
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
load(id) {
|
|
45
|
+
async load(id) {
|
|
46
46
|
const [file] = id.split('?', 1);
|
|
47
47
|
const relativeFile = '/' + normalizePath((0, node_path_1.relative)(virtualProjectRoot, file));
|
|
48
48
|
const codeContents = outputFiles.get(relativeFile)?.contents;
|
|
49
49
|
if (codeContents === undefined) {
|
|
50
50
|
if (relativeFile.endsWith('/node_modules/vite/dist/client/client.mjs')) {
|
|
51
|
-
return
|
|
51
|
+
return {
|
|
52
|
+
code: await loadViteClientCode(file),
|
|
53
|
+
map: await (0, promises_1.readFile)(file + '.map', 'utf-8'),
|
|
54
|
+
};
|
|
52
55
|
}
|
|
53
56
|
return;
|
|
54
57
|
}
|