@angular-devkit/build-angular 19.0.6 → 19.0.7

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
3
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ export * from './src/index';
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ __exportStar(require("./src/index"), exports);
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "19.0.6",
3
+ "version": "19.0.7",
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.1900.6",
11
- "@angular-devkit/build-webpack": "0.1900.6",
12
- "@angular-devkit/core": "19.0.6",
13
- "@angular/build": "19.0.6",
10
+ "@angular-devkit/architect": "0.1900.7",
11
+ "@angular-devkit/build-webpack": "0.1900.7",
12
+ "@angular-devkit/core": "19.0.7",
13
+ "@angular/build": "19.0.7",
14
14
  "@babel/core": "7.26.0",
15
15
  "@babel/generator": "7.26.2",
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.0.6",
24
+ "@ngtools/webpack": "19.0.7",
25
25
  "@vitejs/plugin-basic-ssl": "1.1.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.0.6",
73
+ "@angular/ssr": "^19.0.7",
74
74
  "@web/test-runner": "^0.19.0",
75
75
  "browser-sync": "^3.0.2",
76
76
  "jest": "^29.5.0",
@@ -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("../../../../architect/src/internal").Builder<BrowserBuilderSchema & import("../../../../core/src").JsonObject>;
41
+ declare const _default: import("../../../../architect/src/internal").Builder<BrowserBuilderSchema & import("../../../../core").JsonObject>;
42
42
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<BrowserBuilderOptions & import("../../../../core/src").JsonObject>;
27
+ declare const _default: import("../../../../architect/src/internal").Builder<BrowserBuilderOptions & import("../../../../core").JsonObject>;
28
28
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<DevServerBuilderOptions & import("../../../../core/src").JsonObject>;
12
+ declare const _default: import("../../../../architect/src/internal").Builder<DevServerBuilderOptions & import("../../../../core").JsonObject>;
13
13
  export default _default;
14
14
  export { execute as executeDevServer };
@@ -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("../../../../architect/src/internal").Builder<ExtractI18nBuilderOptions & import("../../../../core/src").JsonObject>;
11
+ declare const _default: import("../../../../architect/src/internal").Builder<ExtractI18nBuilderOptions & import("../../../../core").JsonObject>;
12
12
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<JestBuilderSchema & import("../../../../core/src").JsonObject>;
10
+ declare const _default: import("../../../../architect/src/internal").Builder<JestBuilderSchema & import("../../../../core").JsonObject>;
11
11
  export default _default;
@@ -135,7 +135,7 @@ class AngularPolyfillsPlugin {
135
135
  // page load. `type` won't affect them.
136
136
  continue;
137
137
  }
138
- if ('js' === (f.type ?? 'js')) {
138
+ if (f.pattern.endsWith('.js') && 'js' === (f.type ?? 'js')) {
139
139
  f.type = 'module';
140
140
  }
141
141
  }
@@ -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("../../../../architect/src/internal").Builder<Record<string, string> & NgPackagrBuilderOptions & import("../../../../core/src").JsonObject>;
16
+ declare const _default: import("../../../../architect/src/internal").Builder<Record<string, string> & NgPackagrBuilderOptions & import("../../../../core").JsonObject>;
17
17
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<Schema & import("../../../../core/src").JsonObject>;
18
+ declare const _default: import("../../../../architect/src/internal").Builder<Schema & import("../../../../core").JsonObject>;
19
19
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<ProtractorBuilderOptions & import("../../../../core/src").JsonObject>;
9
+ declare const _default: import("../../../../architect/src/internal").Builder<ProtractorBuilderOptions & import("../../../../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("../../../../architect/src/internal").Builder<ServerBuilderOptions & import("../../../../core/src").JsonObject>;
31
+ declare const _default: import("../../../../architect/src/internal").Builder<ServerBuilderOptions & import("../../../../core").JsonObject>;
32
32
  export default _default;
@@ -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("../../../../architect/src/internal").Builder<Schema & import("../../../../core/src").JsonObject>;
9
+ declare const _default: import("../../../../architect/src/internal").Builder<Schema & import("../../../../core").JsonObject>;
10
10
  export default _default;
@@ -99,7 +99,10 @@ function default_1(options) {
99
99
  reject(err);
100
100
  return;
101
101
  }
102
- let outputPath = (0, loader_utils_1.interpolateName)({ resourcePath: result }, filename(result), {
102
+ let outputPath = (0, loader_utils_1.interpolateName)(
103
+ // TODO: Revisit. Previously due to lack of type safety, this object
104
+ // was fine, but in practice it doesn't match the type of the loader context.
105
+ { resourcePath: result }, filename(result), {
103
106
  content,
104
107
  context: loader.context || loader.rootContext,
105
108
  }).replace(/\\|\//g, '-');
@@ -170,7 +170,10 @@ class ScriptsWebpackPlugin {
170
170
  const assetName = this.options.filename;
171
171
  const asset = compilation.getAsset(assetName);
172
172
  if (asset) {
173
- const interpolatedFilename = (0, loader_utils_1.interpolateName)({ resourcePath: 'scripts.js' }, assetName, { content: asset.source.source() });
173
+ const interpolatedFilename = (0, loader_utils_1.interpolateName)(
174
+ // TODO: Revisit. Previously due to lack of type safety, this object
175
+ // was fine, but in practice it doesn't match the type of the loader context.
176
+ { resourcePath: 'scripts.js' }, assetName, { content: asset.source.source() });
174
177
  if (assetName !== interpolatedFilename) {
175
178
  compilation.renameAsset(assetName, interpolatedFilename);
176
179
  }
@@ -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.0.6';
13
+ const VERSION = '19.0.7';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "types": ["node"]
5
- }
6
- }