@angular-devkit/build-angular 17.3.3 → 17.3.5
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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.5",
|
|
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.1703.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1703.
|
|
12
|
-
"@angular-devkit/core": "17.3.
|
|
10
|
+
"@angular-devkit/architect": "0.1703.5",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1703.5",
|
|
12
|
+
"@angular-devkit/core": "17.3.5",
|
|
13
13
|
"@babel/core": "7.24.0",
|
|
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.24.0",
|
|
21
21
|
"@babel/runtime": "7.24.0",
|
|
22
22
|
"@discoveryjs/json-ext": "0.5.7",
|
|
23
|
-
"@ngtools/webpack": "17.3.
|
|
23
|
+
"@ngtools/webpack": "17.3.5",
|
|
24
24
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
25
25
|
"ansi-colors": "4.1.3",
|
|
26
26
|
"autoprefixer": "10.4.18",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"terser": "5.29.1",
|
|
62
62
|
"tree-kill": "1.2.2",
|
|
63
63
|
"tslib": "2.6.2",
|
|
64
|
-
"undici": "6.
|
|
65
|
-
"vite": "5.1.
|
|
64
|
+
"undici": "6.11.1",
|
|
65
|
+
"vite": "5.1.7",
|
|
66
66
|
"watchpack": "2.4.0",
|
|
67
67
|
"webpack": "5.90.3",
|
|
68
68
|
"webpack-dev-middleware": "6.1.2",
|
|
@@ -341,16 +341,16 @@ exports.createCompilerPlugin = createCompilerPlugin;
|
|
|
341
341
|
function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserveSymlinks) {
|
|
342
342
|
return (compilerOptions) => {
|
|
343
343
|
// target of 9 is ES2022 (using the number avoids an expensive import of typescript just for an enum)
|
|
344
|
-
if (compilerOptions.target === undefined || compilerOptions.target < 9) {
|
|
344
|
+
if (compilerOptions.target === undefined || compilerOptions.target < 9 /** ES2022 */) {
|
|
345
345
|
// If 'useDefineForClassFields' is already defined in the users project leave the value as is.
|
|
346
346
|
// Otherwise fallback to false due to https://github.com/microsoft/TypeScript/issues/45995
|
|
347
347
|
// which breaks the deprecated `@Effects` NGRX decorator and potentially other existing code as well.
|
|
348
|
-
compilerOptions.target = 9
|
|
348
|
+
compilerOptions.target = 9 /** ES2022 */;
|
|
349
349
|
compilerOptions.useDefineForClassFields ??= false;
|
|
350
350
|
// Only add the warning on the initial build
|
|
351
351
|
setupWarnings?.push({
|
|
352
|
-
text:
|
|
353
|
-
'
|
|
352
|
+
text: `TypeScript compiler options 'target' and 'useDefineForClassFields' are set to 'ES2022' and ` +
|
|
353
|
+
`'false' respectively by the Angular CLI.`,
|
|
354
354
|
location: { file: pluginOptions.tsconfig },
|
|
355
355
|
notes: [
|
|
356
356
|
{
|
|
@@ -377,6 +377,14 @@ function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserve
|
|
|
377
377
|
else {
|
|
378
378
|
compilerOptions.incremental = false;
|
|
379
379
|
}
|
|
380
|
+
if (compilerOptions.module === undefined || compilerOptions.module < 5 /** ES2015 */) {
|
|
381
|
+
compilerOptions.module = 7; /** ES2022 */
|
|
382
|
+
setupWarnings?.push({
|
|
383
|
+
text: `TypeScript compiler options 'module' values 'CommonJS', 'UMD', 'System' and 'AMD' are not supported.`,
|
|
384
|
+
location: null,
|
|
385
|
+
notes: [{ text: `The 'module' option will be set to 'ES2022' instead.` }],
|
|
386
|
+
});
|
|
387
|
+
}
|
|
380
388
|
return {
|
|
381
389
|
...compilerOptions,
|
|
382
390
|
noEmitOnError: false,
|
|
@@ -87,7 +87,11 @@ class JavaScriptTransformer {
|
|
|
87
87
|
skipLinker,
|
|
88
88
|
sideEffects,
|
|
89
89
|
...this.#commonOptions,
|
|
90
|
-
}, {
|
|
90
|
+
}, {
|
|
91
|
+
// The below is disable as with Yarn PNP this causes build failures with the below message
|
|
92
|
+
// `Unable to deserialize cloned data`.
|
|
93
|
+
transferList: process.versions.pnp ? undefined : [data.buffer],
|
|
94
|
+
}));
|
|
91
95
|
// If there is a cache then store the result
|
|
92
96
|
if (this.cache && cacheKey) {
|
|
93
97
|
try {
|
|
@@ -145,7 +145,7 @@ class InlineFontsProcessor {
|
|
|
145
145
|
if (hrefAttr) {
|
|
146
146
|
const href = hrefAttr.value;
|
|
147
147
|
const cssContent = hrefsContent.get(href);
|
|
148
|
-
rewriter.emitRaw(`<style
|
|
148
|
+
rewriter.emitRaw(`<style>${cssContent}</style>`);
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
151
|
rewriter.emitStartTag(tag);
|