@angular-devkit/build-angular 17.2.1 → 17.2.3
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/dev-server/vite-server.js +2 -0
- package/src/tools/esbuild/angular/compiler-plugin.js +1 -1
- package/src/tools/esbuild/bundler-context.js +2 -3
- package/src/tools/esbuild/load-result-cache.js +7 -4
- package/src/tools/esbuild/stylesheets/bundle-options.js +3 -0
- package/src/tools/webpack/plugins/typescript.js +1 -1
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.3",
|
|
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.3",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1702.3",
|
|
12
|
+
"@angular-devkit/core": "17.2.3",
|
|
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.3",
|
|
24
24
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
25
25
|
"ansi-colors": "4.1.3",
|
|
26
26
|
"autoprefixer": "10.4.17",
|
|
@@ -53,6 +53,8 @@ const browser_esbuild_1 = require("../browser-esbuild");
|
|
|
53
53
|
async function* serveWithVite(serverOptions, builderName, context, transformers, extensions) {
|
|
54
54
|
// Get the browser configuration from the target name.
|
|
55
55
|
const rawBrowserOptions = (await context.getTargetOptions(serverOptions.buildTarget));
|
|
56
|
+
// Deploy url is not used in the dev-server.
|
|
57
|
+
delete rawBrowserOptions.deployUrl;
|
|
56
58
|
const browserOptions = (await context.validateOptions({
|
|
57
59
|
...rawBrowserOptions,
|
|
58
60
|
watch: serverOptions.watch,
|
|
@@ -351,7 +351,7 @@ function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserve
|
|
|
351
351
|
location: { file: pluginOptions.tsconfig },
|
|
352
352
|
notes: [
|
|
353
353
|
{
|
|
354
|
-
text: 'To control ECMA version and features use the
|
|
354
|
+
text: 'To control ECMA version and features use the Browserslist configuration. ' +
|
|
355
355
|
'For more information, see https://angular.io/guide/build#configuring-browser-compatibility',
|
|
356
356
|
},
|
|
357
357
|
],
|
|
@@ -277,11 +277,10 @@ class BundlerContext {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
(0, node_assert_1.default)(this.#esbuildOptions, 'esbuild options cannot be undefined.');
|
|
280
|
-
const { assetNames = '' } = this.#esbuildOptions;
|
|
281
|
-
const mediaDirname = (0, node_path_1.dirname)(assetNames);
|
|
282
280
|
const outputFiles = result.outputFiles.map((file) => {
|
|
283
281
|
let fileType;
|
|
284
|
-
|
|
282
|
+
// All files that are not JS, CSS, WASM, or sourcemaps for them are considered media
|
|
283
|
+
if (!/\.([cm]?js|css|wasm)(\.map)?$/i.test(file.path)) {
|
|
285
284
|
fileType = BuildOutputFileType.Media;
|
|
286
285
|
}
|
|
287
286
|
else {
|
|
@@ -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() {
|
|
@@ -55,6 +55,9 @@ function createStylesheetBundleOptions(options, cache, inlineComponentData) {
|
|
|
55
55
|
publicPath: options.publicPath,
|
|
56
56
|
conditions: ['style', 'sass', 'less'],
|
|
57
57
|
mainFields: ['style', 'sass'],
|
|
58
|
+
// Unlike JS, CSS does not have implicit file extensions in the general case.
|
|
59
|
+
// Preprocessor specific behavior is handled in each stylesheet language plugin.
|
|
60
|
+
resolveExtensions: [],
|
|
58
61
|
plugins,
|
|
59
62
|
};
|
|
60
63
|
}
|
|
@@ -25,7 +25,7 @@ function createIvyPlugin(wco, aot, tsconfig) {
|
|
|
25
25
|
// which breaks the deprecated `@Effects` NGRX decorator and potentially other existing code as well.
|
|
26
26
|
compilerOptions.useDefineForClassFields ??= false;
|
|
27
27
|
wco.logger.warn('TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and ' +
|
|
28
|
-
'"false" respectively by the Angular CLI. To control ECMA version and features use the
|
|
28
|
+
'"false" respectively by the Angular CLI. To control ECMA version and features use the Browserslist configuration. ' +
|
|
29
29
|
'For more information, see https://angular.io/guide/build#configuring-browser-compatibility\n' +
|
|
30
30
|
`NOTE: You can set the "target" to "ES2022" in the project's tsconfig to remove this warning.`);
|
|
31
31
|
}
|