@angular-devkit/build-angular 19.1.3 → 19.1.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.
Files changed (30) hide show
  1. package/package.json +8 -8
  2. package/src/builders/app-shell/schema.d.ts +2 -2
  3. package/src/builders/browser/index.d.ts +1 -1
  4. package/src/builders/browser/schema.d.ts +24 -24
  5. package/src/builders/browser-esbuild/index.d.ts +1 -1
  6. package/src/builders/browser-esbuild/schema.d.ts +24 -24
  7. package/src/builders/dev-server/builder.js +7 -0
  8. package/src/builders/dev-server/index.d.ts +1 -1
  9. package/src/builders/dev-server/schema.d.ts +6 -8
  10. package/src/builders/dev-server/schema.json +2 -2
  11. package/src/builders/extract-i18n/index.d.ts +1 -1
  12. package/src/builders/extract-i18n/schema.d.ts +2 -2
  13. package/src/builders/jest/index.d.ts +1 -1
  14. package/src/builders/jest/schema.d.ts +2 -2
  15. package/src/builders/karma/schema.d.ts +14 -14
  16. package/src/builders/ng-packagr/index.d.ts +1 -1
  17. package/src/builders/ng-packagr/schema.d.ts +2 -2
  18. package/src/builders/prerender/index.d.ts +1 -1
  19. package/src/builders/prerender/schema.d.ts +2 -2
  20. package/src/builders/protractor/index.d.ts +1 -2
  21. package/src/builders/protractor/schema.d.ts +2 -2
  22. package/src/builders/protractor-error/index.d.ts +1 -1
  23. package/src/builders/server/index.d.ts +1 -1
  24. package/src/builders/server/schema.d.ts +12 -12
  25. package/src/builders/ssr-dev-server/index.d.ts +1 -1
  26. package/src/builders/ssr-dev-server/schema.d.ts +2 -2
  27. package/src/builders/web-test-runner/index.d.ts +1 -1
  28. package/src/builders/web-test-runner/schema.d.ts +14 -14
  29. package/src/tools/webpack/plugins/typescript.js +3 -0
  30. package/src/utils/normalize-cache.js +1 -1
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "19.1.3",
3
+ "version": "19.1.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.1901.3",
11
- "@angular-devkit/build-webpack": "0.1901.3",
12
- "@angular-devkit/core": "19.1.3",
13
- "@angular/build": "19.1.3",
10
+ "@angular-devkit/architect": "0.1901.5",
11
+ "@angular-devkit/build-webpack": "0.1901.5",
12
+ "@angular-devkit/core": "19.1.5",
13
+ "@angular/build": "19.1.5",
14
14
  "@babel/core": "7.26.0",
15
15
  "@babel/generator": "7.26.3",
16
16
  "@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.26.0",
22
22
  "@babel/runtime": "7.26.0",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "19.1.3",
24
+ "@ngtools/webpack": "19.1.5",
25
25
  "@vitejs/plugin-basic-ssl": "1.2.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
70
70
  "@angular/localize": "^19.0.0",
71
71
  "@angular/platform-server": "^19.0.0",
72
72
  "@angular/service-worker": "^19.0.0",
73
- "@angular/ssr": "^19.1.3",
73
+ "@angular/ssr": "^19.1.5",
74
74
  "@web/test-runner": "^0.19.0",
75
75
  "browser-sync": "^3.0.2",
76
76
  "jest": "^29.5.0",
@@ -78,7 +78,7 @@
78
78
  "karma": "^6.3.0",
79
79
  "ng-packagr": "^19.0.0",
80
80
  "protractor": "^7.0.0",
81
- "tailwindcss": "^2.0.0 || ^3.0.0",
81
+ "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
82
82
  "typescript": ">=5.5 <5.8"
83
83
  },
84
84
  "peerDependenciesMeta": {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * App Shell target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * Script that exports the Server AppModule to render. This should be the main JavaScript
7
7
  * outputted by the server target. By default we will resolve the outputPath of the
@@ -33,4 +33,4 @@ export interface Schema {
33
33
  * as a comma-separated list. Example: `project:target:production,staging`.
34
34
  */
35
35
  serverTarget: string;
36
- }
36
+ };
@@ -38,5 +38,5 @@ export declare function buildWebpackBrowser(options: BrowserBuilderSchema, conte
38
38
  logging?: WebpackLoggingCallback;
39
39
  indexHtml?: IndexHtmlTransform;
40
40
  }): Observable<BrowserBuilderOutput>;
41
- declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderSchema & import("../../../../core").JsonObject>;
41
+ declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderSchema & import("@angular-devkit/core").JsonObject>;
42
42
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Browser target options
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * A list of CommonJS or AMD packages that are allowed to be used without a build time
7
7
  * warning. Use `'*'` to allow all.
@@ -173,9 +173,9 @@ export interface Schema {
173
173
  * TypeScript configuration for Web Worker modules.
174
174
  */
175
175
  webWorkerTsConfig?: string;
176
- }
176
+ };
177
177
  export type AssetPattern = AssetPatternClass | string;
178
- export interface AssetPatternClass {
178
+ export type AssetPatternClass = {
179
179
  /**
180
180
  * Allow glob patterns to follow symlink directories. This allows subdirectories of the
181
181
  * symlink to be searched.
@@ -197,8 +197,8 @@ export interface AssetPatternClass {
197
197
  * Absolute path within the output.
198
198
  */
199
199
  output?: string;
200
- }
201
- export interface Budget {
200
+ };
201
+ export type Budget = {
202
202
  /**
203
203
  * The baseline size for comparison.
204
204
  */
@@ -235,7 +235,7 @@ export interface Budget {
235
235
  * The threshold for warning relative to the baseline (min & max).
236
236
  */
237
237
  warning?: string;
238
- }
238
+ };
239
239
  /**
240
240
  * The type of budget.
241
241
  */
@@ -256,12 +256,12 @@ export declare enum CrossOrigin {
256
256
  None = "none",
257
257
  UseCredentials = "use-credentials"
258
258
  }
259
- export interface FileReplacement {
259
+ export type FileReplacement = {
260
260
  replace?: string;
261
261
  replaceWith?: string;
262
262
  src?: string;
263
263
  with?: string;
264
- }
264
+ };
265
265
  /**
266
266
  * How to handle duplicate translations for i18n.
267
267
  *
@@ -276,7 +276,7 @@ export declare enum I18NTranslation {
276
276
  * Configures the generation of the application's HTML index.
277
277
  */
278
278
  export type IndexUnion = IndexObject | string;
279
- export interface IndexObject {
279
+ export type IndexObject = {
280
280
  /**
281
281
  * The path of a file to use for the application's generated HTML index.
282
282
  */
@@ -287,7 +287,7 @@ export interface IndexObject {
287
287
  */
288
288
  output?: string;
289
289
  [property: string]: any;
290
- }
290
+ };
291
291
  /**
292
292
  * The stylesheet language to use for the application's inline component styles.
293
293
  */
@@ -308,7 +308,7 @@ export type Localize = string[] | boolean;
308
308
  * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
309
309
  */
310
310
  export type OptimizationUnion = boolean | OptimizationClass;
311
- export interface OptimizationClass {
311
+ export type OptimizationClass = {
312
312
  /**
313
313
  * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
314
314
  * environment variable can be used to specify a proxy server.
@@ -322,25 +322,25 @@ export interface OptimizationClass {
322
322
  * Enables optimization of the styles output.
323
323
  */
324
324
  styles?: StylesUnion;
325
- }
325
+ };
326
326
  /**
327
327
  * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
328
328
  * environment variable can be used to specify a proxy server.
329
329
  */
330
330
  export type FontsUnion = boolean | FontsClass;
331
- export interface FontsClass {
331
+ export type FontsClass = {
332
332
  /**
333
333
  * Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS
334
334
  * definitions in the application's HTML index file. This option requires internet access.
335
335
  * `HTTPS_PROXY` environment variable can be used to specify a proxy server.
336
336
  */
337
337
  inline?: boolean;
338
- }
338
+ };
339
339
  /**
340
340
  * Enables optimization of the styles output.
341
341
  */
342
342
  export type StylesUnion = boolean | StylesClass;
343
- export interface StylesClass {
343
+ export type StylesClass = {
344
344
  /**
345
345
  * Extract and inline critical CSS definitions to improve first paint time.
346
346
  */
@@ -350,7 +350,7 @@ export interface StylesClass {
350
350
  * identifiers and minimizing values.
351
351
  */
352
352
  minify?: boolean;
353
- }
353
+ };
354
354
  /**
355
355
  * Define the output filename cache-busting hashing mode.
356
356
  */
@@ -365,7 +365,7 @@ export declare enum OutputHashing {
365
365
  */
366
366
  export type Polyfills = string[] | string;
367
367
  export type ScriptElement = ScriptClass | string;
368
- export interface ScriptClass {
368
+ export type ScriptClass = {
369
369
  /**
370
370
  * The bundle name for this extra entry point.
371
371
  */
@@ -378,13 +378,13 @@ export interface ScriptClass {
378
378
  * The file to include.
379
379
  */
380
380
  input: string;
381
- }
381
+ };
382
382
  /**
383
383
  * Output source maps for scripts and styles. For more information, see
384
384
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
385
385
  */
386
386
  export type SourceMapUnion = boolean | SourceMapClass;
387
- export interface SourceMapClass {
387
+ export type SourceMapClass = {
388
388
  /**
389
389
  * Output source maps used for error reporting tools.
390
390
  */
@@ -401,18 +401,18 @@ export interface SourceMapClass {
401
401
  * Resolve vendor packages source maps.
402
402
  */
403
403
  vendor?: boolean;
404
- }
404
+ };
405
405
  /**
406
406
  * Options to pass to style preprocessors.
407
407
  */
408
- export interface StylePreprocessorOptions {
408
+ export type StylePreprocessorOptions = {
409
409
  /**
410
410
  * Paths to include. Paths will be resolved to workspace root.
411
411
  */
412
412
  includePaths?: string[];
413
- }
413
+ };
414
414
  export type StyleElement = StyleClass | string;
415
- export interface StyleClass {
415
+ export type StyleClass = {
416
416
  /**
417
417
  * The bundle name for this extra entry point.
418
418
  */
@@ -425,4 +425,4 @@ export interface StyleClass {
425
425
  * The file to include.
426
426
  */
427
427
  input: string;
428
- }
428
+ };
@@ -24,5 +24,5 @@ export declare function buildEsbuildBrowser(userOptions: BrowserBuilderOptions,
24
24
  export declare function convertBrowserOptions(options: BrowserBuilderOptions): Omit<ApplicationBuilderOptions, 'outputPath'> & {
25
25
  outputPath: OutputPathClass;
26
26
  };
27
- declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderOptions & import("../../../../core").JsonObject>;
27
+ declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderOptions & import("@angular-devkit/core").JsonObject>;
28
28
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Browser target options
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * A list of CommonJS or AMD packages that are allowed to be used without a build time
7
7
  * warning. Use `'*'` to allow all.
@@ -178,9 +178,9 @@ export interface Schema {
178
178
  * TypeScript configuration for Web Worker modules.
179
179
  */
180
180
  webWorkerTsConfig?: string;
181
- }
181
+ };
182
182
  export type AssetPattern = AssetPatternClass | string;
183
- export interface AssetPatternClass {
183
+ export type AssetPatternClass = {
184
184
  /**
185
185
  * Allow glob patterns to follow symlink directories. This allows subdirectories of the
186
186
  * symlink to be searched.
@@ -202,8 +202,8 @@ export interface AssetPatternClass {
202
202
  * Absolute path within the output.
203
203
  */
204
204
  output?: string;
205
- }
206
- export interface Budget {
205
+ };
206
+ export type Budget = {
207
207
  /**
208
208
  * The baseline size for comparison.
209
209
  */
@@ -240,7 +240,7 @@ export interface Budget {
240
240
  * The threshold for warning relative to the baseline (min & max).
241
241
  */
242
242
  warning?: string;
243
- }
243
+ };
244
244
  /**
245
245
  * The type of budget.
246
246
  */
@@ -261,10 +261,10 @@ export declare enum CrossOrigin {
261
261
  None = "none",
262
262
  UseCredentials = "use-credentials"
263
263
  }
264
- export interface FileReplacement {
264
+ export type FileReplacement = {
265
265
  replace: string;
266
266
  with: string;
267
- }
267
+ };
268
268
  /**
269
269
  * How to handle duplicate translations for i18n.
270
270
  *
@@ -279,7 +279,7 @@ export declare enum I18NTranslation {
279
279
  * Configures the generation of the application's HTML index.
280
280
  */
281
281
  export type IndexUnion = boolean | IndexObject | string;
282
- export interface IndexObject {
282
+ export type IndexObject = {
283
283
  /**
284
284
  * The path of a file to use for the application's generated HTML index.
285
285
  */
@@ -290,7 +290,7 @@ export interface IndexObject {
290
290
  */
291
291
  output?: string;
292
292
  [property: string]: any;
293
- }
293
+ };
294
294
  /**
295
295
  * The stylesheet language to use for the application's inline component styles.
296
296
  */
@@ -311,7 +311,7 @@ export type Localize = string[] | boolean;
311
311
  * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
312
312
  */
313
313
  export type OptimizationUnion = boolean | OptimizationClass;
314
- export interface OptimizationClass {
314
+ export type OptimizationClass = {
315
315
  /**
316
316
  * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
317
317
  * environment variable can be used to specify a proxy server.
@@ -325,25 +325,25 @@ export interface OptimizationClass {
325
325
  * Enables optimization of the styles output.
326
326
  */
327
327
  styles?: StylesUnion;
328
- }
328
+ };
329
329
  /**
330
330
  * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
331
331
  * environment variable can be used to specify a proxy server.
332
332
  */
333
333
  export type FontsUnion = boolean | FontsClass;
334
- export interface FontsClass {
334
+ export type FontsClass = {
335
335
  /**
336
336
  * Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS
337
337
  * definitions in the application's HTML index file. This option requires internet access.
338
338
  * `HTTPS_PROXY` environment variable can be used to specify a proxy server.
339
339
  */
340
340
  inline?: boolean;
341
- }
341
+ };
342
342
  /**
343
343
  * Enables optimization of the styles output.
344
344
  */
345
345
  export type StylesUnion = boolean | StylesClass;
346
- export interface StylesClass {
346
+ export type StylesClass = {
347
347
  /**
348
348
  * Extract and inline critical CSS definitions to improve first paint time.
349
349
  */
@@ -353,7 +353,7 @@ export interface StylesClass {
353
353
  * identifiers and minimizing values.
354
354
  */
355
355
  minify?: boolean;
356
- }
356
+ };
357
357
  /**
358
358
  * Define the output filename cache-busting hashing mode.
359
359
  */
@@ -368,7 +368,7 @@ export declare enum OutputHashing {
368
368
  */
369
369
  export type Polyfills = string[] | string;
370
370
  export type ScriptElement = ScriptClass | string;
371
- export interface ScriptClass {
371
+ export type ScriptClass = {
372
372
  /**
373
373
  * The bundle name for this extra entry point.
374
374
  */
@@ -381,13 +381,13 @@ export interface ScriptClass {
381
381
  * The file to include.
382
382
  */
383
383
  input: string;
384
- }
384
+ };
385
385
  /**
386
386
  * Output source maps for scripts and styles. For more information, see
387
387
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
388
388
  */
389
389
  export type SourceMapUnion = boolean | SourceMapClass;
390
- export interface SourceMapClass {
390
+ export type SourceMapClass = {
391
391
  /**
392
392
  * Output source maps used for error reporting tools.
393
393
  */
@@ -404,18 +404,18 @@ export interface SourceMapClass {
404
404
  * Resolve vendor packages source maps.
405
405
  */
406
406
  vendor?: boolean;
407
- }
407
+ };
408
408
  /**
409
409
  * Options to pass to style preprocessors.
410
410
  */
411
- export interface StylePreprocessorOptions {
411
+ export type StylePreprocessorOptions = {
412
412
  /**
413
413
  * Paths to include. Paths will be resolved to workspace root.
414
414
  */
415
415
  includePaths?: string[];
416
- }
416
+ };
417
417
  export type StyleElement = StyleClass | string;
418
- export interface StyleClass {
418
+ export type StyleClass = {
419
419
  /**
420
420
  * The bundle name for this extra entry point.
421
421
  */
@@ -428,4 +428,4 @@ export interface StyleClass {
428
428
  * The file to include.
429
429
  */
430
430
  input: string;
431
- }
431
+ };
@@ -84,6 +84,13 @@ function execute(options, context, transforms = {}, extensions) {
84
84
  }
85
85
  // New build system defaults hmr option to the value of liveReload
86
86
  normalizedOptions.hmr ??= normalizedOptions.liveReload;
87
+ // New build system uses Vite's allowedHost option convention of true for disabling host checks
88
+ if (normalizedOptions.disableHostCheck) {
89
+ normalizedOptions.allowedHosts = true;
90
+ }
91
+ else {
92
+ normalizedOptions.allowedHosts ??= [];
93
+ }
87
94
  return (0, rxjs_1.defer)(() => Promise.all([Promise.resolve().then(() => __importStar(require('@angular/build/private'))), Promise.resolve().then(() => __importStar(require('../browser-esbuild')))])).pipe((0, rxjs_1.switchMap)(([{ serveWithVite, buildApplicationInternal }, { convertBrowserOptions }]) => serveWithVite(normalizedOptions, builderName, (options, context, codePlugins) => {
88
95
  return builderName === '@angular-devkit/build-angular:browser-esbuild'
89
96
  ? // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -9,6 +9,6 @@ import { DevServerBuilderOutput } from '@angular/build';
9
9
  import { execute } from './builder';
10
10
  import { Schema as DevServerBuilderOptions } from './schema';
11
11
  export { type DevServerBuilderOptions, type DevServerBuilderOutput, execute as executeDevServerBuilder, };
12
- declare const _default: import("@angular-devkit/architect").Builder<DevServerBuilderOptions & import("../../../../core").JsonObject>;
12
+ declare const _default: import("@angular-devkit/architect").Builder<DevServerBuilderOptions & import("@angular-devkit/core").JsonObject>;
13
13
  export default _default;
14
14
  export { execute as executeDevServer };
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Dev Server target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
- * List of hosts that are allowed to access the dev server. This option has no effect when
7
- * using the 'application' or other esbuild-based builders.
6
+ * List of hosts that are allowed to access the dev server.
8
7
  */
9
8
  allowedHosts?: string[];
10
9
  /**
@@ -14,8 +13,7 @@ export interface Schema {
14
13
  */
15
14
  buildTarget: string;
16
15
  /**
17
- * Don't verify connected clients are part of allowed hosts. This option has no effect when
18
- * using the 'application' or other esbuild-based builders.
16
+ * Don't verify connected clients are part of allowed hosts.
19
17
  */
20
18
  disableHostCheck?: boolean;
21
19
  /**
@@ -100,7 +98,7 @@ export interface Schema {
100
98
  * Rebuild on change.
101
99
  */
102
100
  watch?: boolean;
103
- }
101
+ };
104
102
  /**
105
103
  * Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are
106
104
  * enabled.
@@ -112,10 +110,10 @@ export type Inspect = boolean | string;
112
110
  * when using the 'browser' or other Webpack-based builders.
113
111
  */
114
112
  export type PrebundleUnion = boolean | PrebundleClass;
115
- export interface PrebundleClass {
113
+ export type PrebundleClass = {
116
114
  /**
117
115
  * List of package imports that should not be prebundled by the development server. The
118
116
  * packages will be bundled into the application code itself.
119
117
  */
120
118
  exclude: string[];
121
- }
119
+ };
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "allowedHosts": {
69
69
  "type": "array",
70
- "description": "List of hosts that are allowed to access the dev server. This option has no effect when using the 'application' or other esbuild-based builders.",
70
+ "description": "List of hosts that are allowed to access the dev server.",
71
71
  "default": [],
72
72
  "items": {
73
73
  "type": "string"
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "disableHostCheck": {
81
81
  "type": "boolean",
82
- "description": "Don't verify connected clients are part of allowed hosts. This option has no effect when using the 'application' or other esbuild-based builders.",
82
+ "description": "Don't verify connected clients are part of allowed hosts.",
83
83
  "default": false
84
84
  },
85
85
  "hmr": {
@@ -8,5 +8,5 @@
8
8
  import { execute } from './builder';
9
9
  import type { Schema as ExtractI18nBuilderOptions } from './schema';
10
10
  export { ExtractI18nBuilderOptions, execute };
11
- declare const _default: import("@angular-devkit/architect").Builder<ExtractI18nBuilderOptions & import("../../../../core").JsonObject>;
11
+ declare const _default: import("@angular-devkit/architect").Builder<ExtractI18nBuilderOptions & import("@angular-devkit/core").JsonObject>;
12
12
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Extract i18n target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * A builder target to extract i18n messages in the format of
7
7
  * `project:target[:configuration]`. You can also pass in more than one configuration name
@@ -24,7 +24,7 @@ export interface Schema {
24
24
  * Log progress to the console.
25
25
  */
26
26
  progress?: boolean;
27
- }
27
+ };
28
28
  /**
29
29
  * Output format for the generated file.
30
30
  */
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import { Schema as JestBuilderSchema } from './schema';
9
9
  /** Main execution function for the Jest builder. */
10
- declare const _default: import("@angular-devkit/architect").Builder<JestBuilderSchema & import("../../../../core").JsonObject>;
10
+ declare const _default: import("@angular-devkit/architect").Builder<JestBuilderSchema & import("@angular-devkit/core").JsonObject>;
11
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Jest target options
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * Globs of files to exclude, relative to the project root.
7
7
  */
@@ -19,4 +19,4 @@ export interface Schema {
19
19
  * The name of the TypeScript configuration file.
20
20
  */
21
21
  tsConfig: string;
22
- }
22
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Karma target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * List of static application assets.
7
7
  */
@@ -102,9 +102,9 @@ export interface Schema {
102
102
  * TypeScript configuration for Web Worker modules.
103
103
  */
104
104
  webWorkerTsConfig?: string;
105
- }
105
+ };
106
106
  export type AssetPattern = AssetPatternClass | string;
107
- export interface AssetPatternClass {
107
+ export type AssetPatternClass = {
108
108
  /**
109
109
  * The pattern to match.
110
110
  */
@@ -121,7 +121,7 @@ export interface AssetPatternClass {
121
121
  * Absolute path within the output.
122
122
  */
123
123
  output?: string;
124
- }
124
+ };
125
125
  /**
126
126
  * Override which browsers tests are run against. Set to `false` to not use any browser.
127
127
  */
@@ -135,12 +135,12 @@ export declare enum BuilderMode {
135
135
  Browser = "browser",
136
136
  Detect = "detect"
137
137
  }
138
- export interface FileReplacement {
138
+ export type FileReplacement = {
139
139
  replace?: string;
140
140
  replaceWith?: string;
141
141
  src?: string;
142
142
  with?: string;
143
- }
143
+ };
144
144
  /**
145
145
  * The stylesheet language to use for the application's inline component styles.
146
146
  */
@@ -155,7 +155,7 @@ export declare enum InlineStyleLanguage {
155
155
  */
156
156
  export type Polyfills = string[] | string;
157
157
  export type ScriptElement = ScriptClass | string;
158
- export interface ScriptClass {
158
+ export type ScriptClass = {
159
159
  /**
160
160
  * The bundle name for this extra entry point.
161
161
  */
@@ -168,13 +168,13 @@ export interface ScriptClass {
168
168
  * The file to include.
169
169
  */
170
170
  input: string;
171
- }
171
+ };
172
172
  /**
173
173
  * Output source maps for scripts and styles. For more information, see
174
174
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
175
175
  */
176
176
  export type SourceMapUnion = boolean | SourceMapClass;
177
- export interface SourceMapClass {
177
+ export type SourceMapClass = {
178
178
  /**
179
179
  * Output source maps for all scripts.
180
180
  */
@@ -187,18 +187,18 @@ export interface SourceMapClass {
187
187
  * Resolve vendor packages source maps.
188
188
  */
189
189
  vendor?: boolean;
190
- }
190
+ };
191
191
  /**
192
192
  * Options to pass to style preprocessors
193
193
  */
194
- export interface StylePreprocessorOptions {
194
+ export type StylePreprocessorOptions = {
195
195
  /**
196
196
  * Paths to include. Paths will be resolved to workspace root.
197
197
  */
198
198
  includePaths?: string[];
199
- }
199
+ };
200
200
  export type StyleElement = StyleClass | string;
201
- export interface StyleClass {
201
+ export type StyleClass = {
202
202
  /**
203
203
  * The bundle name for this extra entry point.
204
204
  */
@@ -211,4 +211,4 @@ export interface StyleClass {
211
211
  * The file to include.
212
212
  */
213
213
  input: string;
214
- }
214
+ };
@@ -13,5 +13,5 @@ import { Schema as NgPackagrBuilderOptions } from './schema';
13
13
  */
14
14
  export declare function execute(options: NgPackagrBuilderOptions, context: BuilderContext): Observable<BuilderOutput>;
15
15
  export type { NgPackagrBuilderOptions };
16
- declare const _default: import("@angular-devkit/architect").Builder<Record<string, string> & NgPackagrBuilderOptions & import("../../../../core").JsonObject>;
16
+ declare const _default: import("@angular-devkit/architect").Builder<Record<string, string> & NgPackagrBuilderOptions & import("@angular-devkit/core").JsonObject>;
17
17
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ng-packagr target options for Build Architect. Use to build library projects.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * Enable and define the file watching poll time period in milliseconds.
7
7
  */
@@ -18,4 +18,4 @@ export interface Schema {
18
18
  * Run build when files change.
19
19
  */
20
20
  watch?: boolean;
21
- }
21
+ };
@@ -15,5 +15,5 @@ type PrerenderBuilderOutput = BuilderOutput;
15
15
  * the browser result.
16
16
  */
17
17
  export declare function execute(options: PrerenderBuilderOptions, context: BuilderContext): Promise<PrerenderBuilderOutput>;
18
- declare const _default: import("@angular-devkit/architect").Builder<Schema & import("../../../../core").JsonObject>;
18
+ declare const _default: import("@angular-devkit/architect").Builder<Schema & import("@angular-devkit/core").JsonObject>;
19
19
  export default _default;
@@ -1,4 +1,4 @@
1
- export interface Schema {
1
+ export type Schema = {
2
2
  /**
3
3
  * Target to build.
4
4
  */
@@ -21,4 +21,4 @@ export interface Schema {
21
21
  * Server target to use for prerendering the app.
22
22
  */
23
23
  serverTarget: string;
24
- }
24
+ };
@@ -6,12 +6,11 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
- import { json } from '@angular-devkit/core';
10
9
  import { Schema as ProtractorBuilderOptions } from './schema';
11
10
  export type { ProtractorBuilderOptions };
12
11
  /**
13
12
  * @experimental Direct usage of this function is considered experimental.
14
13
  */
15
14
  export declare function execute(options: ProtractorBuilderOptions, context: BuilderContext): Promise<BuilderOutput>;
16
- declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & json.JsonObject>;
15
+ declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & import("@angular-devkit/core").JsonObject>;
17
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Protractor target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * Base URL for protractor to connect to.
7
7
  */
@@ -44,4 +44,4 @@ export interface Schema {
44
44
  * Try to update webdriver.
45
45
  */
46
46
  webdriverUpdate?: boolean;
47
- }
47
+ };
@@ -6,5 +6,5 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Schema as ProtractorBuilderOptions } from '../protractor/schema';
9
- declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & import("../../../../core").JsonObject>;
9
+ declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & import("@angular-devkit/core").JsonObject>;
10
10
  export default _default;
@@ -28,5 +28,5 @@ export type { ServerBuilderOptions };
28
28
  export declare function execute(options: ServerBuilderOptions, context: BuilderContext, transforms?: {
29
29
  webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
30
30
  }): Observable<ServerBuilderOutput>;
31
- declare const _default: import("@angular-devkit/architect").Builder<ServerBuilderOptions & import("../../../../core").JsonObject>;
31
+ declare const _default: import("@angular-devkit/architect").Builder<ServerBuilderOptions & import("@angular-devkit/core").JsonObject>;
32
32
  export default _default;
@@ -1,4 +1,4 @@
1
- export interface Schema {
1
+ export type Schema = {
2
2
  /**
3
3
  * List of static application assets.
4
4
  */
@@ -116,9 +116,9 @@ export interface Schema {
116
116
  * Run build when files change.
117
117
  */
118
118
  watch?: boolean;
119
- }
119
+ };
120
120
  export type AssetPattern = AssetPatternClass | string;
121
- export interface AssetPatternClass {
121
+ export type AssetPatternClass = {
122
122
  /**
123
123
  * Allow glob patterns to follow symlink directories. This allows subdirectories of the
124
124
  * symlink to be searched.
@@ -140,13 +140,13 @@ export interface AssetPatternClass {
140
140
  * Absolute path within the output.
141
141
  */
142
142
  output?: string;
143
- }
144
- export interface FileReplacement {
143
+ };
144
+ export type FileReplacement = {
145
145
  replace?: string;
146
146
  replaceWith?: string;
147
147
  src?: string;
148
148
  with?: string;
149
- }
149
+ };
150
150
  /**
151
151
  * How to handle duplicate translations for i18n.
152
152
  *
@@ -176,7 +176,7 @@ export type Localize = string[] | boolean;
176
176
  * https://angular.dev/reference/configs/workspace-config#optimization-configuration.
177
177
  */
178
178
  export type OptimizationUnion = boolean | OptimizationClass;
179
- export interface OptimizationClass {
179
+ export type OptimizationClass = {
180
180
  /**
181
181
  * Enables optimization of the scripts output.
182
182
  */
@@ -185,7 +185,7 @@ export interface OptimizationClass {
185
185
  * Enables optimization of the styles output.
186
186
  */
187
187
  styles?: boolean;
188
- }
188
+ };
189
189
  /**
190
190
  * Define the output filename cache-busting hashing mode.
191
191
  */
@@ -200,7 +200,7 @@ export declare enum OutputHashing {
200
200
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
201
201
  */
202
202
  export type SourceMapUnion = boolean | SourceMapClass;
203
- export interface SourceMapClass {
203
+ export type SourceMapClass = {
204
204
  /**
205
205
  * Output source maps used for error reporting tools.
206
206
  */
@@ -217,13 +217,13 @@ export interface SourceMapClass {
217
217
  * Resolve vendor packages source maps.
218
218
  */
219
219
  vendor?: boolean;
220
- }
220
+ };
221
221
  /**
222
222
  * Options to pass to style preprocessors
223
223
  */
224
- export interface StylePreprocessorOptions {
224
+ export type StylePreprocessorOptions = {
225
225
  /**
226
226
  * Paths to include. Paths will be resolved to workspace root.
227
227
  */
228
228
  includePaths?: string[];
229
- }
229
+ };
@@ -9,7 +9,7 @@ import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { json, logging } from '@angular-devkit/core';
10
10
  import { Observable } from 'rxjs';
11
11
  import { Schema } from './schema';
12
- export type SSRDevServerBuilderOptions = Schema & json.JsonObject;
12
+ export type SSRDevServerBuilderOptions = Schema;
13
13
  export type SSRDevServerBuilderOutput = BuilderOutput & {
14
14
  baseUrl?: string;
15
15
  port?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * SSR Dev Server target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * Browser target to build.
7
7
  */
@@ -61,4 +61,4 @@ export interface Schema {
61
61
  * Rebuild on change.
62
62
  */
63
63
  watch?: boolean;
64
- }
64
+ };
@@ -6,5 +6,5 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Schema } from './schema';
9
- declare const _default: import("@angular-devkit/architect").Builder<Schema & import("../../../../core").JsonObject>;
9
+ declare const _default: import("@angular-devkit/architect").Builder<Schema & import("@angular-devkit/core").JsonObject>;
10
10
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Web Test Runner target options for Build Facade.
3
3
  */
4
- export interface Schema {
4
+ export type Schema = {
5
5
  /**
6
6
  * List of static application assets.
7
7
  */
@@ -89,9 +89,9 @@ export interface Schema {
89
89
  * TypeScript configuration for Web Worker modules.
90
90
  */
91
91
  webWorkerTsConfig?: string;
92
- }
92
+ };
93
93
  export type AssetPattern = AssetPatternClass | string;
94
- export interface AssetPatternClass {
94
+ export type AssetPatternClass = {
95
95
  /**
96
96
  * The pattern to match.
97
97
  */
@@ -108,13 +108,13 @@ export interface AssetPatternClass {
108
108
  * Absolute path within the output.
109
109
  */
110
110
  output?: string;
111
- }
112
- export interface FileReplacement {
111
+ };
112
+ export type FileReplacement = {
113
113
  replace?: string;
114
114
  replaceWith?: string;
115
115
  src?: string;
116
116
  with?: string;
117
- }
117
+ };
118
118
  /**
119
119
  * The stylesheet language to use for the application's inline component styles.
120
120
  */
@@ -129,7 +129,7 @@ export declare enum InlineStyleLanguage {
129
129
  */
130
130
  export type Polyfills = string[] | string;
131
131
  export type ScriptElement = ScriptClass | string;
132
- export interface ScriptClass {
132
+ export type ScriptClass = {
133
133
  /**
134
134
  * The bundle name for this extra entry point.
135
135
  */
@@ -142,13 +142,13 @@ export interface ScriptClass {
142
142
  * The file to include.
143
143
  */
144
144
  input: string;
145
- }
145
+ };
146
146
  /**
147
147
  * Output source maps for scripts and styles. For more information, see
148
148
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
149
149
  */
150
150
  export type SourceMapUnion = boolean | SourceMapClass;
151
- export interface SourceMapClass {
151
+ export type SourceMapClass = {
152
152
  /**
153
153
  * Output source maps for all scripts.
154
154
  */
@@ -161,18 +161,18 @@ export interface SourceMapClass {
161
161
  * Resolve vendor packages source maps.
162
162
  */
163
163
  vendor?: boolean;
164
- }
164
+ };
165
165
  /**
166
166
  * Options to pass to style preprocessors
167
167
  */
168
- export interface StylePreprocessorOptions {
168
+ export type StylePreprocessorOptions = {
169
169
  /**
170
170
  * Paths to include. Paths will be resolved to workspace root.
171
171
  */
172
172
  includePaths?: string[];
173
- }
173
+ };
174
174
  export type StyleElement = StyleClass | string;
175
- export interface StyleClass {
175
+ export type StyleClass = {
176
176
  /**
177
177
  * The bundle name for this extra entry point.
178
178
  */
@@ -185,4 +185,4 @@ export interface StyleClass {
185
185
  * The file to include.
186
186
  */
187
187
  input: string;
188
- }
188
+ };
@@ -17,6 +17,9 @@ function createIvyPlugin(wco, aot, tsconfig) {
17
17
  sourceMap: buildOptions.sourceMap.scripts,
18
18
  declaration: false,
19
19
  declarationMap: false,
20
+ // Disable removing of comments as TS is quite aggressive with these and can
21
+ // remove important annotations, such as /* @__PURE__ */.
22
+ removeComments: false,
20
23
  };
21
24
  if (tsConfig.options.target === undefined || tsConfig.options.target < typescript_1.ScriptTarget.ES2022) {
22
25
  compilerOptions.target = typescript_1.ScriptTarget.ES2022;
@@ -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 = '19.1.3';
13
+ const VERSION = '19.1.5';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&