@angular-devkit/build-angular 18.0.1 → 18.0.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,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "18.0.1",
3
+ "version": "18.0.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.3.0",
10
- "@angular/build": "18.0.1",
11
- "@angular-devkit/architect": "0.1800.1",
12
- "@angular-devkit/build-webpack": "0.1800.1",
13
- "@angular-devkit/core": "18.0.1",
10
+ "@angular/build": "18.0.2",
11
+ "@angular-devkit/architect": "0.1800.2",
12
+ "@angular-devkit/build-webpack": "0.1800.2",
13
+ "@angular-devkit/core": "18.0.2",
14
14
  "@babel/core": "7.24.5",
15
15
  "@babel/generator": "7.24.5",
16
16
  "@babel/helper-annotate-as-pure": "7.22.5",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.24.5",
22
22
  "@babel/runtime": "7.24.5",
23
23
  "@discoveryjs/json-ext": "0.5.7",
24
- "@ngtools/webpack": "18.0.1",
24
+ "@ngtools/webpack": "18.0.2",
25
25
  "@vitejs/plugin-basic-ssl": "1.1.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.19",
@@ -90,7 +90,7 @@ export interface Schema {
90
90
  * Enables optimization of the build output. Including minification of scripts and styles,
91
91
  * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
92
92
  * more information, see
93
- * https://angular.io/guide/workspace-config#optimization-configuration.
93
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
94
94
  */
95
95
  optimization?: OptimizationUnion;
96
96
  /**
@@ -132,7 +132,7 @@ export interface Schema {
132
132
  serviceWorker?: boolean;
133
133
  /**
134
134
  * Output source maps for scripts and styles. For more information, see
135
- * https://angular.io/guide/workspace-config#source-map-configuration.
135
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
136
136
  */
137
137
  sourceMap?: SourceMapUnion;
138
138
  /**
@@ -305,7 +305,7 @@ export type Localize = string[] | boolean;
305
305
  * Enables optimization of the build output. Including minification of scripts and styles,
306
306
  * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
307
307
  * more information, see
308
- * https://angular.io/guide/workspace-config#optimization-configuration.
308
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
309
309
  */
310
310
  export type OptimizationUnion = boolean | OptimizationClass;
311
311
  export interface OptimizationClass {
@@ -381,7 +381,7 @@ export interface ScriptClass {
381
381
  }
382
382
  /**
383
383
  * Output source maps for scripts and styles. For more information, see
384
- * https://angular.io/guide/workspace-config#source-map-configuration.
384
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
385
385
  */
386
386
  export type SourceMapUnion = boolean | SourceMapClass;
387
387
  export interface SourceMapClass {
@@ -132,7 +132,7 @@
132
132
  "additionalProperties": false
133
133
  },
134
134
  "optimization": {
135
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
135
+ "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
136
136
  "default": true,
137
137
  "x-user-analytics": "ep.ng_optimization",
138
138
  "oneOf": [
@@ -220,7 +220,7 @@
220
220
  "default": true
221
221
  },
222
222
  "sourceMap": {
223
- "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
223
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
224
224
  "default": false,
225
225
  "oneOf": [
226
226
  {
@@ -95,7 +95,7 @@ export interface Schema {
95
95
  * Enables optimization of the build output. Including minification of scripts and styles,
96
96
  * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
97
97
  * more information, see
98
- * https://angular.io/guide/workspace-config#optimization-configuration.
98
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
99
99
  */
100
100
  optimization?: OptimizationUnion;
101
101
  /**
@@ -137,7 +137,7 @@ export interface Schema {
137
137
  serviceWorker?: boolean;
138
138
  /**
139
139
  * Output source maps for scripts and styles. For more information, see
140
- * https://angular.io/guide/workspace-config#source-map-configuration.
140
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
141
141
  */
142
142
  sourceMap?: SourceMapUnion;
143
143
  /**
@@ -308,7 +308,7 @@ export type Localize = string[] | boolean;
308
308
  * Enables optimization of the build output. Including minification of scripts and styles,
309
309
  * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
310
310
  * more information, see
311
- * https://angular.io/guide/workspace-config#optimization-configuration.
311
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
312
312
  */
313
313
  export type OptimizationUnion = boolean | OptimizationClass;
314
314
  export interface OptimizationClass {
@@ -384,7 +384,7 @@ export interface ScriptClass {
384
384
  }
385
385
  /**
386
386
  * Output source maps for scripts and styles. For more information, see
387
- * https://angular.io/guide/workspace-config#source-map-configuration.
387
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
388
388
  */
389
389
  export type SourceMapUnion = boolean | SourceMapClass;
390
390
  export interface SourceMapClass {
@@ -139,7 +139,7 @@
139
139
  "default": []
140
140
  },
141
141
  "optimization": {
142
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
142
+ "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
143
143
  "default": true,
144
144
  "x-user-analytics": "ep.ng_optimization",
145
145
  "oneOf": [
@@ -227,7 +227,7 @@
227
227
  "default": true
228
228
  },
229
229
  "sourceMap": {
230
- "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
230
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
231
231
  "default": false,
232
232
  "oneOf": [
233
233
  {
@@ -68,7 +68,7 @@ export interface Schema {
68
68
  prebundle?: PrebundleUnion;
69
69
  /**
70
70
  * Proxy configuration file. For more information, see
71
- * https://angular.io/guide/build#proxying-to-a-backend-server.
71
+ * https://angular.dev/tools/cli/serve#proxying-to-a-backend-server.
72
72
  */
73
73
  proxyConfig?: string;
74
74
  /**
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "proxyConfig": {
29
29
  "type": "string",
30
- "description": "Proxy configuration file. For more information, see https://angular.io/guide/build#proxying-to-a-backend-server."
30
+ "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
31
31
  },
32
32
  "ssl": {
33
33
  "type": "boolean",
@@ -74,7 +74,7 @@ export interface Schema {
74
74
  scripts?: ScriptElement[];
75
75
  /**
76
76
  * Output source maps for scripts and styles. For more information, see
77
- * https://angular.io/guide/workspace-config#source-map-configuration.
77
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
78
78
  */
79
79
  sourceMap?: SourceMapUnion;
80
80
  /**
@@ -157,7 +157,7 @@ export interface ScriptClass {
157
157
  }
158
158
  /**
159
159
  * Output source maps for scripts and styles. For more information, see
160
- * https://angular.io/guide/workspace-config#source-map-configuration.
160
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
161
161
  */
162
162
  export type SourceMapUnion = boolean | SourceMapClass;
163
163
  export interface SourceMapClass {
@@ -152,7 +152,7 @@
152
152
  "description": "Globs of files to exclude, relative to the project root."
153
153
  },
154
154
  "sourceMap": {
155
- "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
155
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
156
156
  "default": true,
157
157
  "oneOf": [
158
158
  {
@@ -89,7 +89,7 @@ async function updateWebdriver() {
89
89
  * @experimental Direct usage of this function is considered experimental.
90
90
  */
91
91
  async function execute(options, context) {
92
- context.logger.warn('Protractor has reached end-of-life and is no longer supported by the Angular team. The `protractor` builder will be removed in a future Angular major version. For additional information and alternatives, please see https://blog.angular.io/protractor-deprecation-update-august-2023-2beac7402ce0.');
92
+ context.logger.warn('Protractor has reached end-of-life and is no longer supported by the Angular team. The `protractor` builder will be removed in a future Angular major version. For additional information and alternatives, please see https://blog.angular.dev/protractor-deprecation-update-august-2023-2beac7402ce0.');
93
93
  // ensure that only one of these options is used
94
94
  if (options.devServerTarget && options.baseUrl) {
95
95
  throw new Error(core_1.tags.stripIndents `
@@ -171,7 +171,7 @@ async function checkTsConfigForPreserveWhitespacesSetting(context, tsConfigPath)
171
171
  context.logger.warn(`"preserveWhitespaces" was set in "${tsConfigPath}". ` +
172
172
  'Make sure that this setting is set consistently in both "tsconfig.server.json" for your server side ' +
173
173
  'and "tsconfig.app.json" for your client side. A mismatched value will cause hydration to break.\n' +
174
- 'For more information see: https://angular.io/guide/hydration#preserve-whitespaces');
174
+ 'For more information see: https://angular.dev/guide/hydration#preserve-whitespaces-configuration');
175
175
  }
176
176
  }
177
177
  /**
@@ -57,7 +57,7 @@ export interface Schema {
57
57
  /**
58
58
  * Enables optimization of the build output. Including minification of scripts and styles,
59
59
  * tree-shaking and dead-code elimination. For more information, see
60
- * https://angular.io/guide/workspace-config#optimization-configuration.
60
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
61
61
  */
62
62
  optimization?: OptimizationUnion;
63
63
  /**
@@ -87,7 +87,7 @@ export interface Schema {
87
87
  resourcesOutputPath?: string;
88
88
  /**
89
89
  * Output source maps for scripts and styles. For more information, see
90
- * https://angular.io/guide/workspace-config#source-map-configuration.
90
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
91
91
  */
92
92
  sourceMap?: SourceMapUnion;
93
93
  /**
@@ -173,7 +173,7 @@ export type Localize = string[] | boolean;
173
173
  /**
174
174
  * Enables optimization of the build output. Including minification of scripts and styles,
175
175
  * tree-shaking and dead-code elimination. For more information, see
176
- * https://angular.io/guide/workspace-config#optimization-configuration.
176
+ * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
177
177
  */
178
178
  export type OptimizationUnion = boolean | OptimizationClass;
179
179
  export interface OptimizationClass {
@@ -197,7 +197,7 @@ export declare enum OutputHashing {
197
197
  }
198
198
  /**
199
199
  * Output source maps for scripts and styles. For more information, see
200
- * https://angular.io/guide/workspace-config#source-map-configuration.
200
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
201
201
  */
202
202
  export type SourceMapUnion = boolean | SourceMapClass;
203
203
  export interface SourceMapClass {
@@ -43,7 +43,7 @@
43
43
  "additionalProperties": false
44
44
  },
45
45
  "optimization": {
46
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
46
+ "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
47
47
  "default": true,
48
48
  "x-user-analytics": "ep.ng_optimization",
49
49
  "oneOf": [
@@ -85,7 +85,7 @@
85
85
  "description": "The path where style resources will be placed, relative to outputPath."
86
86
  },
87
87
  "sourceMap": {
88
- "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
88
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
89
89
  "default": false,
90
90
  "oneOf": [
91
91
  {
@@ -66,7 +66,7 @@ export interface Schema {
66
66
  scripts?: ScriptElement[];
67
67
  /**
68
68
  * Output source maps for scripts and styles. For more information, see
69
- * https://angular.io/guide/workspace-config#source-map-configuration.
69
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
70
70
  */
71
71
  sourceMap?: SourceMapUnion;
72
72
  /**
@@ -145,7 +145,7 @@ export interface ScriptClass {
145
145
  }
146
146
  /**
147
147
  * Output source maps for scripts and styles. For more information, see
148
- * https://angular.io/guide/workspace-config#source-map-configuration.
148
+ * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
149
149
  */
150
150
  export type SourceMapUnion = boolean | SourceMapClass;
151
151
  export interface SourceMapClass {
@@ -148,7 +148,7 @@
148
148
  "description": "Globs of files to exclude, relative to the project root."
149
149
  },
150
150
  "sourceMap": {
151
- "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
151
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
152
152
  "default": true,
153
153
  "oneOf": [
154
154
  {
@@ -112,7 +112,7 @@ function default_1(api, options) {
112
112
  if (safariClassFieldScopeBugBrowsers === undefined) {
113
113
  const browserslist = require('browserslist');
114
114
  safariClassFieldScopeBugBrowsers = new Set(browserslist([
115
- // Safari <15 is technically not supported via https://angular.io/guide/browser-support,
115
+ // Safari <15 is technically not supported via https://angular.dev/reference/versions#browser-support
116
116
  // but we apply the workaround if forcibly selected.
117
117
  'Safari <=15',
118
118
  'iOS <=15',
@@ -26,7 +26,7 @@ function createIvyPlugin(wco, aot, tsconfig) {
26
26
  compilerOptions.useDefineForClassFields ??= false;
27
27
  wco.logger.warn('TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and ' +
28
28
  '"false" respectively by the Angular CLI. To control ECMA version and features use the Browserslist configuration. ' +
29
- 'For more information, see https://angular.io/guide/build#configuring-browser-compatibility\n' +
29
+ 'For more information, see https://angular.dev/tools/cli/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
  }
32
32
  if (buildOptions.preserveSymlinks !== undefined) {
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = void 0;
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.0.1';
13
+ const VERSION = '18.0.2';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&