@depup/ngtools__webpack 21.2.2-depup.0

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -0
  3. package/changes.json +5 -0
  4. package/index.d.ts +8 -0
  5. package/index.js +25 -0
  6. package/index.js.map +1 -0
  7. package/package.json +50 -0
  8. package/src/benchmark.d.ts +9 -0
  9. package/src/benchmark.js +27 -0
  10. package/src/benchmark.js.map +1 -0
  11. package/src/index.d.ts +8 -0
  12. package/src/index.js +19 -0
  13. package/src/index.js.map +1 -0
  14. package/src/ivy/cache.d.ts +14 -0
  15. package/src/ivy/cache.js +33 -0
  16. package/src/ivy/cache.js.map +1 -0
  17. package/src/ivy/diagnostics.d.ts +13 -0
  18. package/src/ivy/diagnostics.js +33 -0
  19. package/src/ivy/diagnostics.js.map +1 -0
  20. package/src/ivy/host.d.ts +32 -0
  21. package/src/ivy/host.js +226 -0
  22. package/src/ivy/host.js.map +1 -0
  23. package/src/ivy/index.d.ts +10 -0
  24. package/src/ivy/index.js +17 -0
  25. package/src/ivy/index.js.map +1 -0
  26. package/src/ivy/loader.d.ts +10 -0
  27. package/src/ivy/loader.js +95 -0
  28. package/src/ivy/loader.js.map +1 -0
  29. package/src/ivy/paths.d.ts +11 -0
  30. package/src/ivy/paths.js +70 -0
  31. package/src/ivy/paths.js.map +1 -0
  32. package/src/ivy/plugin.d.ts +53 -0
  33. package/src/ivy/plugin.js +556 -0
  34. package/src/ivy/plugin.js.map +1 -0
  35. package/src/ivy/symbol.d.ts +25 -0
  36. package/src/ivy/symbol.js +45 -0
  37. package/src/ivy/symbol.js.map +1 -0
  38. package/src/ivy/system.d.ts +15 -0
  39. package/src/ivy/system.js +115 -0
  40. package/src/ivy/system.js.map +1 -0
  41. package/src/ivy/transformation.d.ts +18 -0
  42. package/src/ivy/transformation.js +137 -0
  43. package/src/ivy/transformation.js.map +1 -0
  44. package/src/loaders/inline-resource.d.ts +16 -0
  45. package/src/loaders/inline-resource.js +25 -0
  46. package/src/loaders/inline-resource.js.map +1 -0
  47. package/src/paths-plugin.d.ts +32 -0
  48. package/src/paths-plugin.js +255 -0
  49. package/src/paths-plugin.js.map +1 -0
  50. package/src/resource_loader.d.ts +29 -0
  51. package/src/resource_loader.js +321 -0
  52. package/src/resource_loader.js.map +1 -0
  53. package/src/transformers/elide_imports.d.ts +9 -0
  54. package/src/transformers/elide_imports.js +165 -0
  55. package/src/transformers/elide_imports.js.map +1 -0
  56. package/src/transformers/find_image_domains.d.ts +9 -0
  57. package/src/transformers/find_image_domains.js +132 -0
  58. package/src/transformers/find_image_domains.js.map +1 -0
  59. package/src/transformers/index.d.ts +9 -0
  60. package/src/transformers/index.js +26 -0
  61. package/src/transformers/index.js.map +1 -0
  62. package/src/transformers/remove-ivy-jit-support-calls.d.ts +9 -0
  63. package/src/transformers/remove-ivy-jit-support-calls.js +136 -0
  64. package/src/transformers/remove-ivy-jit-support-calls.js.map +1 -0
  65. package/src/transformers/replace_resources.d.ts +11 -0
  66. package/src/transformers/replace_resources.js +250 -0
  67. package/src/transformers/replace_resources.js.map +1 -0
  68. package/src/transformers/spec_helpers.d.ts +13 -0
  69. package/src/transformers/spec_helpers.js +89 -0
  70. package/src/transformers/spec_helpers.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @depup/ngtools__webpack
2
+
3
+ > Dependency-bumped version of [@ngtools/webpack](https://www.npmjs.com/package/@ngtools/webpack)
4
+
5
+ Generated by [DepUp](https://github.com/depup/npm) -- all production
6
+ dependencies bumped to latest versions.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @depup/ngtools__webpack
12
+ ```
13
+
14
+ | Field | Value |
15
+ |-------|-------|
16
+ | Original | [@ngtools/webpack](https://www.npmjs.com/package/@ngtools/webpack) @ 21.2.2 |
17
+ | Processed | 2026-03-17 |
18
+ | Smoke test | passed |
19
+ | Deps updated | 0 |
20
+
21
+ ---
22
+
23
+ Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/@ngtools/webpack
24
+
25
+ License inherited from the original package.
package/changes.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "bumped": {},
3
+ "timestamp": "2026-03-17T16:32:23.259Z",
4
+ "totalUpdated": 0
5
+ }
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,25 @@
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);
25
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,8CAA4B"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@depup/ngtools__webpack",
3
+ "version": "21.2.2-depup.0",
4
+ "description": "[DepUp] Webpack plugin that AoT compiles your Angular components and modules.",
5
+ "main": "./src/index.js",
6
+ "typings": "src/index.d.ts",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "depup",
10
+ "dependency-bumped",
11
+ "updated-deps",
12
+ "@ngtools/webpack",
13
+ "Angular CLI",
14
+ "Angular DevKit",
15
+ "angular",
16
+ "aot",
17
+ "devkit",
18
+ "plugin",
19
+ "sdk",
20
+ "webpack"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/angular/angular-cli.git"
25
+ },
26
+ "author": "Angular Authors",
27
+ "bugs": {
28
+ "url": "https://github.com/angular/angular-cli/issues"
29
+ },
30
+ "homepage": "https://github.com/angular/angular-cli",
31
+ "peerDependencies": {
32
+ "@angular/compiler-cli": "^21.0.0",
33
+ "typescript": ">=5.9 <6.0",
34
+ "webpack": "^5.54.0"
35
+ },
36
+ "packageManager": "pnpm@10.31.0",
37
+ "engines": {
38
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
39
+ "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
40
+ "yarn": ">= 1.13.0"
41
+ },
42
+ "depup": {
43
+ "changes": {},
44
+ "depsUpdated": 0,
45
+ "originalPackage": "@ngtools/webpack",
46
+ "originalVersion": "21.2.2",
47
+ "processedAt": "2026-03-17T16:32:30.595Z",
48
+ "smokeTest": "passed"
49
+ }
50
+ }
@@ -0,0 +1,9 @@
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 declare function time(label: string): void;
9
+ export declare function timeEnd(label: string): void;
@@ -0,0 +1,27 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.time = time;
11
+ exports.timeEnd = timeEnd;
12
+ // Internal benchmark reporting flag.
13
+ // Use with CLI --no-progress flag for best results.
14
+ // This should be false for commited code.
15
+ const _benchmark = false;
16
+ /* eslint-disable no-console */
17
+ function time(label) {
18
+ if (_benchmark) {
19
+ console.time(label);
20
+ }
21
+ }
22
+ function timeEnd(label) {
23
+ if (_benchmark) {
24
+ console.timeEnd(label);
25
+ }
26
+ }
27
+ //# sourceMappingURL=benchmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"benchmark.js","sourceRoot":"","sources":["benchmark.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAOH,oBAIC;AAED,0BAIC;AAfD,qCAAqC;AACrC,oDAAoD;AACpD,0CAA0C;AAC1C,MAAM,UAAU,GAAG,KAAK,CAAC;AACzB,+BAA+B;AAC/B,SAAgB,IAAI,CAAC,KAAa;IAChC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACH,CAAC;AAED,SAAgB,OAAO,CAAC,KAAa;IACnC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;AACH,CAAC"}
package/src/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 { AngularWebpackLoaderPath, AngularWebpackPlugin, type AngularWebpackPluginOptions, imageDomains, default, } from './ivy';
package/src/index.js ADDED
@@ -0,0 +1,19 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.default = exports.imageDomains = exports.AngularWebpackPlugin = exports.AngularWebpackLoaderPath = void 0;
14
+ var ivy_1 = require("./ivy");
15
+ Object.defineProperty(exports, "AngularWebpackLoaderPath", { enumerable: true, get: function () { return ivy_1.AngularWebpackLoaderPath; } });
16
+ Object.defineProperty(exports, "AngularWebpackPlugin", { enumerable: true, get: function () { return ivy_1.AngularWebpackPlugin; } });
17
+ Object.defineProperty(exports, "imageDomains", { enumerable: true, get: function () { return ivy_1.imageDomains; } });
18
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ivy_1).default; } });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;AAEH,6BAMe;AALb,+GAAA,wBAAwB,OAAA;AACxB,2GAAA,oBAAoB,OAAA;AAEpB,mGAAA,YAAY,OAAA;AACZ,+GAAA,OAAO,OAAA"}
@@ -0,0 +1,14 @@
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
+ import * as ts from 'typescript';
9
+ export declare class SourceFileCache extends Map<string, ts.SourceFile> {
10
+ private readonly angularDiagnostics;
11
+ invalidate(file: string): void;
12
+ updateAngularDiagnostics(sourceFile: ts.SourceFile, diagnostics: ts.Diagnostic[]): void;
13
+ getAngularDiagnostics(sourceFile: ts.SourceFile): ts.Diagnostic[] | undefined;
14
+ }
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SourceFileCache = void 0;
11
+ class SourceFileCache extends Map {
12
+ angularDiagnostics = new Map();
13
+ invalidate(file) {
14
+ const sourceFile = this.get(file);
15
+ if (sourceFile) {
16
+ this.delete(file);
17
+ this.angularDiagnostics.delete(sourceFile);
18
+ }
19
+ }
20
+ updateAngularDiagnostics(sourceFile, diagnostics) {
21
+ if (diagnostics.length > 0) {
22
+ this.angularDiagnostics.set(sourceFile, diagnostics);
23
+ }
24
+ else {
25
+ this.angularDiagnostics.delete(sourceFile);
26
+ }
27
+ }
28
+ getAngularDiagnostics(sourceFile) {
29
+ return this.angularDiagnostics.get(sourceFile);
30
+ }
31
+ }
32
+ exports.SourceFileCache = SourceFileCache;
33
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["cache.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,MAAa,eAAgB,SAAQ,GAA0B;IAC5C,kBAAkB,GAAG,IAAI,GAAG,EAAkC,CAAC;IAEhF,UAAU,CAAC,IAAY;QACrB,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAClB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,wBAAwB,CAAC,UAAyB,EAAE,WAA4B;QAC9E,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QACvD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,qBAAqB,CAAC,UAAyB;QAC7C,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;CACF;AAtBD,0CAsBC"}
@@ -0,0 +1,13 @@
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
+ import { Diagnostic } from 'typescript';
9
+ import type { Compilation } from 'webpack';
10
+ export type DiagnosticsReporter = (diagnostics: readonly Diagnostic[]) => void;
11
+ export declare function createDiagnosticsReporter(compilation: Compilation, formatter: (diagnostic: Diagnostic) => string): DiagnosticsReporter;
12
+ export declare function addWarning(compilation: Compilation, message: string): void;
13
+ export declare function addError(compilation: Compilation, message: string): void;
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.createDiagnosticsReporter = createDiagnosticsReporter;
11
+ exports.addWarning = addWarning;
12
+ exports.addError = addError;
13
+ const typescript_1 = require("typescript");
14
+ function createDiagnosticsReporter(compilation, formatter) {
15
+ return (diagnostics) => {
16
+ for (const diagnostic of diagnostics) {
17
+ const text = formatter(diagnostic);
18
+ if (diagnostic.category === typescript_1.DiagnosticCategory.Error) {
19
+ addError(compilation, text);
20
+ }
21
+ else {
22
+ addWarning(compilation, text);
23
+ }
24
+ }
25
+ };
26
+ }
27
+ function addWarning(compilation, message) {
28
+ compilation.warnings.push(new compilation.compiler.webpack.WebpackError(message));
29
+ }
30
+ function addError(compilation, message) {
31
+ compilation.errors.push(new compilation.compiler.webpack.WebpackError(message));
32
+ }
33
+ //# sourceMappingURL=diagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["diagnostics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAOH,8DAcC;AAED,gCAEC;AAED,4BAEC;AA3BD,2CAA4D;AAK5D,SAAgB,yBAAyB,CACvC,WAAwB,EACxB,SAA6C;IAE7C,OAAO,CAAC,WAAW,EAAE,EAAE;QACrB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACrC,MAAM,IAAI,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;YACnC,IAAI,UAAU,CAAC,QAAQ,KAAK,+BAAkB,CAAC,KAAK,EAAE,CAAC;gBACrD,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,UAAU,CAAC,WAAwB,EAAE,OAAe;IAClE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AACpF,CAAC;AAED,SAAgB,QAAQ,CAAC,WAAwB,EAAE,OAAe;IAChE,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAClF,CAAC"}
@@ -0,0 +1,32 @@
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
+ import * as ts from 'typescript';
9
+ import { WebpackResourceLoader } from '../resource_loader';
10
+ export declare function augmentHostWithResources(host: ts.CompilerHost, resourceLoader: WebpackResourceLoader, options?: {
11
+ directTemplateLoading?: boolean;
12
+ inlineStyleFileExtension?: string;
13
+ }): void;
14
+ /**
15
+ * Augments a TypeScript Compiler Host's resolveModuleNames function to collect dependencies
16
+ * of the containing file passed to the resolveModuleNames function. This process assumes
17
+ * that consumers of the Compiler Host will only call resolveModuleNames with modules that are
18
+ * actually present in a containing file.
19
+ * This process is a workaround for gathering a TypeScript SourceFile's dependencies as there
20
+ * is no currently exposed public method to do so. A BuilderProgram does have a `getAllDependencies`
21
+ * function. However, that function returns all transitive dependencies as well which can cause
22
+ * excessive Webpack rebuilds.
23
+ *
24
+ * @param host The CompilerHost to augment.
25
+ * @param dependencies A Map which will be used to store file dependencies.
26
+ * @param moduleResolutionCache An optional resolution cache to use when the host resolves a module.
27
+ */
28
+ export declare function augmentHostWithDependencyCollection(host: ts.CompilerHost, dependencies: Map<string, Set<string>>, moduleResolutionCache?: ts.ModuleResolutionCache): void;
29
+ export declare function augmentHostWithReplacements(host: ts.CompilerHost, replacements: Record<string, string>, moduleResolutionCache?: ts.ModuleResolutionCache): void;
30
+ export declare function augmentHostWithSubstitutions(host: ts.CompilerHost, substitutions: Record<string, string>): void;
31
+ export declare function augmentProgramWithVersioning(program: ts.Program): void;
32
+ export declare function augmentHostWithCaching(host: ts.CompilerHost, cache: Map<string, ts.SourceFile>): void;
@@ -0,0 +1,226 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || (function () {
26
+ var ownKeys = function(o) {
27
+ ownKeys = Object.getOwnPropertyNames || function (o) {
28
+ var ar = [];
29
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
30
+ return ar;
31
+ };
32
+ return ownKeys(o);
33
+ };
34
+ return function (mod) {
35
+ if (mod && mod.__esModule) return mod;
36
+ var result = {};
37
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
38
+ __setModuleDefault(result, mod);
39
+ return result;
40
+ };
41
+ })();
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.augmentHostWithResources = augmentHostWithResources;
44
+ exports.augmentHostWithDependencyCollection = augmentHostWithDependencyCollection;
45
+ exports.augmentHostWithReplacements = augmentHostWithReplacements;
46
+ exports.augmentHostWithSubstitutions = augmentHostWithSubstitutions;
47
+ exports.augmentProgramWithVersioning = augmentProgramWithVersioning;
48
+ exports.augmentHostWithCaching = augmentHostWithCaching;
49
+ const node_crypto_1 = require("node:crypto");
50
+ const path = __importStar(require("node:path"));
51
+ const ts = __importStar(require("typescript"));
52
+ const paths_1 = require("./paths");
53
+ function augmentHostWithResources(host, resourceLoader, options = {}) {
54
+ const resourceHost = host;
55
+ resourceHost.readResource = function (fileName) {
56
+ const filePath = (0, paths_1.normalizePath)(fileName);
57
+ if (options.directTemplateLoading &&
58
+ (filePath.endsWith('.html') || filePath.endsWith('.svg'))) {
59
+ const content = this.readFile(filePath);
60
+ if (content === undefined) {
61
+ throw new Error('Unable to locate component resource: ' + fileName);
62
+ }
63
+ resourceLoader.setAffectedResources(filePath, [filePath]);
64
+ return Promise.resolve(content);
65
+ }
66
+ else {
67
+ return resourceLoader.get(filePath);
68
+ }
69
+ };
70
+ resourceHost.resourceNameToFileName = function (resourceName, containingFile) {
71
+ return path.join(path.dirname(containingFile), resourceName);
72
+ };
73
+ resourceHost.getModifiedResourceFiles = function () {
74
+ return resourceLoader.getModifiedResourceFiles();
75
+ };
76
+ resourceHost.transformResource = async function (data, context) {
77
+ // Only inline style resources are supported currently
78
+ if (context.resourceFile || context.type !== 'style') {
79
+ return null;
80
+ }
81
+ if (options.inlineStyleFileExtension) {
82
+ const content = await resourceLoader.process(data, options.inlineStyleFileExtension, context.type, context.containingFile);
83
+ return { content };
84
+ }
85
+ return null;
86
+ };
87
+ }
88
+ function augmentResolveModuleNames(host, resolvedModuleModifier, moduleResolutionCache) {
89
+ if (host.resolveModuleNames) {
90
+ const baseResolveModuleNames = host.resolveModuleNames;
91
+ host.resolveModuleNames = function (moduleNames, ...parameters) {
92
+ return moduleNames.map((name) => {
93
+ const result = baseResolveModuleNames.call(host, [name], ...parameters);
94
+ return resolvedModuleModifier(result[0], name);
95
+ });
96
+ };
97
+ }
98
+ else {
99
+ host.resolveModuleNames = function (moduleNames, containingFile, _reusedNames, redirectedReference, options) {
100
+ return moduleNames.map((name) => {
101
+ const result = ts.resolveModuleName(name, containingFile, options, host, moduleResolutionCache, redirectedReference).resolvedModule;
102
+ return resolvedModuleModifier(result, name);
103
+ });
104
+ };
105
+ }
106
+ }
107
+ /**
108
+ * Augments a TypeScript Compiler Host's resolveModuleNames function to collect dependencies
109
+ * of the containing file passed to the resolveModuleNames function. This process assumes
110
+ * that consumers of the Compiler Host will only call resolveModuleNames with modules that are
111
+ * actually present in a containing file.
112
+ * This process is a workaround for gathering a TypeScript SourceFile's dependencies as there
113
+ * is no currently exposed public method to do so. A BuilderProgram does have a `getAllDependencies`
114
+ * function. However, that function returns all transitive dependencies as well which can cause
115
+ * excessive Webpack rebuilds.
116
+ *
117
+ * @param host The CompilerHost to augment.
118
+ * @param dependencies A Map which will be used to store file dependencies.
119
+ * @param moduleResolutionCache An optional resolution cache to use when the host resolves a module.
120
+ */
121
+ function augmentHostWithDependencyCollection(host, dependencies, moduleResolutionCache) {
122
+ if (host.resolveModuleNames) {
123
+ const baseResolveModuleNames = host.resolveModuleNames;
124
+ host.resolveModuleNames = function (moduleNames, containingFile, ...parameters) {
125
+ const results = baseResolveModuleNames.call(host, moduleNames, containingFile, ...parameters);
126
+ const containingFilePath = (0, paths_1.normalizePath)(containingFile);
127
+ for (const result of results) {
128
+ if (result) {
129
+ const containingFileDependencies = dependencies.get(containingFilePath);
130
+ if (containingFileDependencies) {
131
+ containingFileDependencies.add(result.resolvedFileName);
132
+ }
133
+ else {
134
+ dependencies.set(containingFilePath, new Set([result.resolvedFileName]));
135
+ }
136
+ }
137
+ }
138
+ return results;
139
+ };
140
+ }
141
+ else {
142
+ host.resolveModuleNames = function (moduleNames, containingFile, _reusedNames, redirectedReference, options) {
143
+ return moduleNames.map((name) => {
144
+ const result = ts.resolveModuleName(name, containingFile, options, host, moduleResolutionCache, redirectedReference).resolvedModule;
145
+ if (result) {
146
+ const containingFilePath = (0, paths_1.normalizePath)(containingFile);
147
+ const containingFileDependencies = dependencies.get(containingFilePath);
148
+ if (containingFileDependencies) {
149
+ containingFileDependencies.add(result.resolvedFileName);
150
+ }
151
+ else {
152
+ dependencies.set(containingFilePath, new Set([result.resolvedFileName]));
153
+ }
154
+ }
155
+ return result;
156
+ });
157
+ };
158
+ }
159
+ }
160
+ function augmentHostWithReplacements(host, replacements, moduleResolutionCache) {
161
+ if (Object.keys(replacements).length === 0) {
162
+ return;
163
+ }
164
+ const normalizedReplacements = {};
165
+ for (const [key, value] of Object.entries(replacements)) {
166
+ normalizedReplacements[(0, paths_1.normalizePath)(key)] = (0, paths_1.normalizePath)(value);
167
+ }
168
+ const tryReplace = (resolvedModule) => {
169
+ const replacement = resolvedModule && normalizedReplacements[resolvedModule.resolvedFileName];
170
+ if (replacement) {
171
+ return {
172
+ resolvedFileName: replacement,
173
+ isExternalLibraryImport: /[/\\]node_modules[/\\]/.test(replacement),
174
+ };
175
+ }
176
+ else {
177
+ return resolvedModule;
178
+ }
179
+ };
180
+ augmentResolveModuleNames(host, tryReplace, moduleResolutionCache);
181
+ }
182
+ function augmentHostWithSubstitutions(host, substitutions) {
183
+ const regexSubstitutions = [];
184
+ for (const [key, value] of Object.entries(substitutions)) {
185
+ regexSubstitutions.push([new RegExp(`\\b${key}\\b`, 'g'), value]);
186
+ }
187
+ if (regexSubstitutions.length === 0) {
188
+ return;
189
+ }
190
+ const baseReadFile = host.readFile;
191
+ host.readFile = function (...parameters) {
192
+ let file = baseReadFile.call(host, ...parameters);
193
+ if (file) {
194
+ for (const entry of regexSubstitutions) {
195
+ file = file.replace(entry[0], entry[1]);
196
+ }
197
+ }
198
+ return file;
199
+ };
200
+ }
201
+ function augmentProgramWithVersioning(program) {
202
+ const baseGetSourceFiles = program.getSourceFiles;
203
+ program.getSourceFiles = function (...parameters) {
204
+ const files = baseGetSourceFiles(...parameters);
205
+ for (const file of files) {
206
+ if (file.version === undefined) {
207
+ file.version = (0, node_crypto_1.createHash)('sha256').update(file.text).digest('hex');
208
+ }
209
+ }
210
+ return files;
211
+ };
212
+ }
213
+ function augmentHostWithCaching(host, cache) {
214
+ const baseGetSourceFile = host.getSourceFile;
215
+ host.getSourceFile = function (fileName, languageVersion, onError, shouldCreateNewSourceFile, ...parameters) {
216
+ if (!shouldCreateNewSourceFile && cache.has(fileName)) {
217
+ return cache.get(fileName);
218
+ }
219
+ const file = baseGetSourceFile.call(host, fileName, languageVersion, onError, true, ...parameters);
220
+ if (file) {
221
+ cache.set(fileName, file);
222
+ }
223
+ return file;
224
+ };
225
+ }
226
+ //# sourceMappingURL=host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.js","sourceRoot":"","sources":["host.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUH,4DAyDC;AAyDD,kFA4DC;AAED,kEA2BC;AAED,oEAwBC;AAED,oEAeC;AAED,wDA+BC;AA7RD,6CAAyC;AACzC,gDAAkC;AAClC,+CAAiC;AAEjC,mCAAwC;AAExC,SAAgB,wBAAwB,CACtC,IAAqB,EACrB,cAAqC,EACrC,UAGI,EAAE;IAEN,MAAM,YAAY,GAAG,IAAoB,CAAC;IAE1C,YAAY,CAAC,YAAY,GAAG,UAAU,QAAgB;QACpD,MAAM,QAAQ,GAAG,IAAA,qBAAa,EAAC,QAAQ,CAAC,CAAC;QAEzC,IACE,OAAO,CAAC,qBAAqB;YAC7B,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EACzD,CAAC;YACD,MAAM,OA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B,KAAiC;IAEjC,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC;IAC7C,IAAI,CAAC,aAAa,GAAG,UACnB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,yBAAyB,EACzB,GAAG,UAAU;QAEb,IAAI,CAAC,yBAAyB,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YACtD,OAAO,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CACjC,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,OAAO,EACP,IAAI,EACJ,GAAG,UAAU,CACd,CAAC;QAEF,IAAI,IAAI,EAAE,CAAC;YACT,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
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 { angularWebpackLoader as default } from './loader';
9
+ export { type AngularWebpackPluginOptions, AngularWebpackPlugin, imageDomains } from './plugin';
10
+ export declare const AngularWebpackLoaderPath: string;
@@ -0,0 +1,17 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AngularWebpackLoaderPath = exports.imageDomains = exports.AngularWebpackPlugin = exports.default = void 0;
11
+ var loader_1 = require("./loader");
12
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return loader_1.angularWebpackLoader; } });
13
+ var plugin_1 = require("./plugin");
14
+ Object.defineProperty(exports, "AngularWebpackPlugin", { enumerable: true, get: function () { return plugin_1.AngularWebpackPlugin; } });
15
+ Object.defineProperty(exports, "imageDomains", { enumerable: true, get: function () { return plugin_1.imageDomains; } });
16
+ exports.AngularWebpackLoaderPath = __filename;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mCAA2D;AAAlD,iGAAA,oBAAoB,OAAW;AACxC,mCAAgG;AAArD,8GAAA,oBAAoB,OAAA;AAAE,sGAAA,YAAY,OAAA;AAEhE,QAAA,wBAAwB,GAAW,UAAU,CAAC"}
@@ -0,0 +1,10 @@
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
+ import type { LoaderContext } from 'webpack';
9
+ export declare function angularWebpackLoader(this: LoaderContext<unknown>, content: string, map: string): void;
10
+ export { angularWebpackLoader as default };