@nx/angular-rspack-compiler 21.1.0 → 21.4.0-beta.10

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,21 +1,22 @@
1
- MIT License
1
+ (The MIT License)
2
2
 
3
- Copyright (c) 2025 Colum Ferry
3
+ Copyright (c) 2017-2025 Narwhal Technologies Inc.
4
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:
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
11
12
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
14
15
 
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 THE
21
- SOFTWARE.
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,83 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
1
8
  <div style="text-align: center;">
2
9
 
3
- <img src="http://github.com/nrwl/angular-rspack/raw/main/rsbuild-plugin-angular.png" alt="Rsbuild Plugin Angular" />
10
+ [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
11
+ [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
12
+ [![NPM Version](https://badge.fury.io/js/nx.svg)](https://www.npmjs.com/package/nx)
13
+ [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
14
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
15
+ [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
16
+ [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
4
17
 
5
18
  </div>
6
19
 
20
+
21
+ <hr>
22
+
23
+ # Nx: Smart Repos · Fast Builds
24
+
25
+ An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
26
+
7
27
  # @nx/angular-rspack-compiler
8
28
 
9
- ## Compilation Utilities for Angular with Rspack and Rsbuild
29
+ ## Compilation Utilities for Angular with Rspack
30
+
31
+ This library provides utilities for compiling Angular applications with Rspack.
32
+
33
+ ## Getting Started
34
+
35
+ ### Creating an Nx Workspace
36
+
37
+ **Using `npx`**
38
+
39
+ ```bash
40
+ npx create-nx-workspace
41
+ ```
42
+
43
+ **Using `npm init`**
44
+
45
+ ```bash
46
+ npm init nx-workspace
47
+ ```
48
+
49
+ **Using `yarn create`**
50
+
51
+ ```bash
52
+ yarn create nx-workspace
53
+ ```
54
+
55
+ ### Adding Nx to an Existing Repository
56
+
57
+ Run:
58
+
59
+ ```bash
60
+ npx nx@latest init
61
+ ```
62
+
63
+ ## Documentation & Resources
64
+
65
+ - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
66
+ - [Intro to Nx](https://nx.dev/getting-started/intro)
67
+ - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
68
+ - [Blog Posts About Nx](https://nx.dev/blog)
69
+
70
+ <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
71
+ width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
72
+
73
+
74
+ ## Documentation & Resources
75
+
76
+ - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
77
+ - [Intro to Nx](https://nx.dev/getting-started/intro)
78
+ - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
79
+ - [Blog Posts About Nx](https://nx.dev/blog)
80
+
81
+ <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
82
+ width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
10
83
 
11
- This library provides utilities for compiling Angular applications with Rspack and Rsbuild.
@@ -0,0 +1,24 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ {{links}}
9
+
10
+ <hr>
11
+
12
+ # Nx: Smart Repos · Fast Builds
13
+
14
+ An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
15
+
16
+ # @nx/angular-rspack-compiler
17
+
18
+ ## Compilation Utilities for Angular with Rspack
19
+
20
+ This library provides utilities for compiling Angular applications with Rspack.
21
+
22
+ {{content}}
23
+
24
+ {{resources}}
@@ -1,4 +1,4 @@
1
- import { JavaScriptTransformer } from '@angular/build/src/tools/esbuild/javascript-transformer';
1
+ import { JavaScriptTransformer } from '@angular/build/private';
2
2
  import { AngularCompilation } from '../models';
3
3
  export declare function buildAndAnalyze(angularCompilation: AngularCompilation, typescriptFileCache: Map<string, string | Uint8Array>, javascriptTransformer: JavaScriptTransformer): Promise<void>;
4
4
  //# sourceMappingURL=build-and-analyze.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-and-analyze.d.ts","sourceRoot":"","sources":["../../src/compilation/build-and-analyze.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,wBAAsB,eAAe,CACnC,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,EACrD,qBAAqB,EAAE,qBAAqB,iBAgB7C"}
1
+ {"version":3,"file":"build-and-analyze.d.ts","sourceRoot":"","sources":["../../src/compilation/build-and-analyze.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,wBAAsB,eAAe,CACnC,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,EACrD,qBAAqB,EAAE,qBAAqB,iBAgB7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"setup-compilation.d.ts","sourceRoot":"","sources":["../../src/compilation/setup-compilation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAE5E,OAAO,EACL,0BAA0B,EAE3B,MAAM,gEAAgE,CAAC;AAIxE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACzC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,eAc5C,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,EAC9C,OAAO,EAAE,uBAAuB;;;;GAiDjC;AAED,wBAAgB,cAAc,CAC5B,0BAA0B,EAAE,0BAA0B,YAG5C,MAAM,kBACE,MAAM,mBACL,MAAM,qBAgC1B"}
1
+ {"version":3,"file":"setup-compilation.d.ts","sourceRoot":"","sources":["../../src/compilation/setup-compilation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAE5E,OAAO,EACL,0BAA0B,EAE3B,MAAM,gEAAgE,CAAC;AAIxE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACzC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,eAc5C,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,EAC9C,OAAO,EAAE,uBAAuB;;;;GAiDjC;AAED,wBAAgB,cAAc,CAC5B,0BAA0B,EAAE,0BAA0B,IAGpD,QAAQ,MAAM,EACd,gBAAgB,MAAM,EACtB,iBAAiB,MAAM,qBAgC1B"}
@@ -1,4 +1,4 @@
1
- import { JavaScriptTransformer } from '@angular/build/src/tools/esbuild/javascript-transformer';
1
+ import { JavaScriptTransformer } from '@angular/build/private';
2
2
  import { ParallelCompilation } from '@angular/build/src/tools/angular/compilation/parallel-compilation';
3
3
  import { AotCompilation } from '@angular/build/src/tools/angular/compilation/aot-compilation';
4
4
  import { JitCompilation } from '@angular/build/src/tools/angular/compilation/jit-compilation';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC;AAEF,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAE7C,oBAAY,eAAe;IACzB,IAAI,IAAI;IACR,MAAM,IAAS;IACf,SAAS,IAAS;IAClB,QAAQ,IAAS;IACjB,GAAG,IAAgC;CACpC;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC;AAEF,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAE7C,oBAAY,eAAe;IACzB,IAAI,IAAI;IACR,MAAM,IAAS;IACf,SAAS,IAAS;IAClB,QAAQ,IAAS;IACjB,GAAG,IAAgC;CACpC;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiagnosticModes = exports.AngularCompilation = exports.JitCompilation = exports.AotCompilation = exports.SourceFileCache = exports.JavaScriptTransformer = exports.ParallelCompilation = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const javascript_transformer_1 = require("@angular/build/src/tools/esbuild/javascript-transformer");
6
- Object.defineProperty(exports, "JavaScriptTransformer", { enumerable: true, get: function () { return javascript_transformer_1.JavaScriptTransformer; } });
5
+ const private_1 = require("@angular/build/private");
6
+ Object.defineProperty(exports, "JavaScriptTransformer", { enumerable: true, get: function () { return private_1.JavaScriptTransformer; } });
7
7
  const parallel_compilation_1 = require("@angular/build/src/tools/angular/compilation/parallel-compilation");
8
8
  Object.defineProperty(exports, "ParallelCompilation", { enumerable: true, get: function () { return parallel_compilation_1.ParallelCompilation; } });
9
9
  const aot_compilation_1 = require("@angular/build/src/tools/angular/compilation/aot-compilation");
@@ -12,8 +12,8 @@ const jit_compilation_1 = require("@angular/build/src/tools/angular/compilation/
12
12
  Object.defineProperty(exports, "JitCompilation", { enumerable: true, get: function () { return jit_compilation_1.JitCompilation; } });
13
13
  const angular_compilation_1 = require("@angular/build/src/tools/angular/compilation/angular-compilation");
14
14
  Object.defineProperty(exports, "AngularCompilation", { enumerable: true, get: function () { return angular_compilation_1.AngularCompilation; } });
15
- const private_1 = require("@angular/build/private");
16
- Object.defineProperty(exports, "SourceFileCache", { enumerable: true, get: function () { return private_1.SourceFileCache; } });
15
+ const private_2 = require("@angular/build/private");
16
+ Object.defineProperty(exports, "SourceFileCache", { enumerable: true, get: function () { return private_2.SourceFileCache; } });
17
17
  tslib_1.__exportStar(require("./inline-style-language"), exports);
18
18
  tslib_1.__exportStar(require("./file-replacement"), exports);
19
19
  tslib_1.__exportStar(require("./style-preprocessor-options"), exports);
@@ -26,7 +26,7 @@ export declare class StyleUrlsResolver {
26
26
  private readonly styleUrlsCache;
27
27
  resolve(code: string, id: string): string[];
28
28
  }
29
- export declare function getStyleUrls(code: string): (string | undefined)[];
29
+ export declare function getStyleUrls(code: string): string[];
30
30
  export declare function getTemplateUrls(code: string): string[];
31
31
  export interface TemplateUrlsCacheEntry {
32
32
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component-resolvers.d.ts","sourceRoot":"","sources":["../../src/utils/component-resolvers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAYH,qBAAa,iBAAiB;IAK5B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0C;IAEzE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CA8B5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,0BASxC;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,YAO3C;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAG9B;IAEJ,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CAc5C"}
1
+ {"version":3,"file":"component-resolvers.d.ts","sourceRoot":"","sources":["../../src/utils/component-resolvers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAYH,qBAAa,iBAAiB;IAK5B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0C;IAEzE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CA8B5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,YASxC;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,YAO3C;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAG9B;IAEJ,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CAc5C"}
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import type ts from 'typescript';
9
9
  export declare class SourceFileCache extends Map<string, ts.SourceFile> {
10
- readonly persistentCachePath?: string | undefined;
10
+ readonly persistentCachePath?: string;
11
11
  readonly modifiedFiles: Set<string>;
12
- readonly babelFileCache: Map<string, Uint8Array>;
13
- readonly typeScriptFileCache: Map<string, string | Uint8Array>;
12
+ readonly babelFileCache: Map<string, Uint8Array<ArrayBufferLike>>;
13
+ readonly typeScriptFileCache: Map<string, string | Uint8Array<ArrayBufferLike>>;
14
14
  referencedFiles?: readonly string[];
15
- constructor(persistentCachePath?: string | undefined);
15
+ constructor(persistentCachePath?: string);
16
16
  invalidate(files: Iterable<string>): void;
17
17
  }
18
18
  //# sourceMappingURL=source-file-cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source-file-cache.d.ts","sourceRoot":"","sources":["../../src/utils/source-file-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,qBAAa,eAAgB,SAAQ,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC;IAOjD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM;IANjD,QAAQ,CAAC,aAAa,cAAqB;IAC3C,QAAQ,CAAC,cAAc,0BAAiC;IACxD,QAAQ,CAAC,mBAAmB,mCAA0C;IAEtE,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;gBAEf,mBAAmB,CAAC,EAAE,MAAM,YAAA;IAIjD,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI;CAiB1C"}
1
+ {"version":3,"file":"source-file-cache.d.ts","sourceRoot":"","sources":["../../src/utils/source-file-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,qBAAa,eAAgB,SAAQ,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC;IAOjD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM;IANjD,QAAQ,CAAC,aAAa,cAAqB;IAC3C,QAAQ,CAAC,cAAc,2CAAiC;IACxD,QAAQ,CAAC,mBAAmB,oDAA0C;IAEtE,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;gBAEf,mBAAmB,CAAC,EAAE,MAAM;IAIjD,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI;CAiB1C"}
@@ -1,8 +1,8 @@
1
1
  import { PropertyAssignment } from 'ts-morph';
2
2
  export declare const isUsingWindows: () => boolean;
3
3
  export declare function getTextByProperty(name: string, properties: PropertyAssignment[]): string[];
4
- export declare function getAllTextByProperty(name: string, properties: PropertyAssignment[]): (string | undefined)[];
5
- export declare function normalizeQuotes(str?: string): string | undefined;
4
+ export declare function getAllTextByProperty(name: string, properties: PropertyAssignment[]): string[];
5
+ export declare function normalizeQuotes(str?: string): string;
6
6
  export declare function isPresent(variable: string | undefined): variable is string;
7
7
  export declare function parseMaxWorkers(value: string | undefined): number | null;
8
8
  export declare const maxWorkers: () => number;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGtE,eAAO,MAAM,cAAc,eAA+B,CAAC;AAE3D,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,kBAAkB,EAAE,YAMjC;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,kBAAkB,EAAE,0BAQjC;AAED,wBAAgB,eAAe,CAAC,GAAG,CAAC,EAAE,MAAM,sBAE3C;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,IAAI,MAAM,CAE1E;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAIxE;AAED,eAAO,MAAM,UAAU,cAKtB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGtE,eAAO,MAAM,cAAc,eAA+B,CAAC;AAE3D,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,kBAAkB,EAAE,YAMjC;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,kBAAkB,EAAE,YAQjC;AAED,wBAAgB,eAAe,CAAC,GAAG,CAAC,EAAE,MAAM,UAE3C;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,IAAI,MAAM,CAE1E;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAIxE;AAED,eAAO,MAAM,UAAU,cAKtB,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack-compiler",
3
3
  "private": false,
4
+ "version": "21.4.0-beta.10",
4
5
  "publishConfig": {
5
6
  "access": "public"
6
7
  },
7
8
  "description": "Compilation utilities for Angular with Rspack and Rsbuild.",
8
- "author": "Colum Ferry",
9
+ "author": "Victor Savkin",
9
10
  "license": "MIT",
10
11
  "bugs": {
11
- "url": "https://github.com/nrwl/angular-rspack/issues"
12
+ "url": "https://github.com/nrwl/nx/issues"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",
15
- "url": "https://github.com/nrwl/angular-rspack.git",
16
+ "url": "https://github.com/nrwl/nx.git",
16
17
  "directory": "packages/angular-rspack-compiler"
17
18
  },
18
19
  "keywords": [
@@ -21,7 +22,6 @@
21
22
  "rsbuild",
22
23
  "compiler"
23
24
  ],
24
- "version": "21.1.0",
25
25
  "type": "commonjs",
26
26
  "main": "./dist/index.js",
27
27
  "module": "./dist/index.js",
@@ -33,18 +33,16 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@angular/build": "20.0.0",
36
+ "@angular/build": "~20.1.0",
37
37
  "sass-embedded": "^1.79.3",
38
38
  "ts-morph": "^24.0.0",
39
39
  "tslib": "^2.3.0",
40
- "typescript": "5.6.3"
40
+ "typescript": "5.8.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@code-pushup/models": "^0.63.0",
44
- "@code-pushup/utils": "^0.63.0",
45
43
  "jsonc-eslint-parser": "^2.4.0",
46
- "vitest": "^1.3.1",
47
- "@ng-rspack/testing-setup": "0.0.1"
44
+ "vitest": "^3.0.5",
45
+ "memfs": "^4.17.0"
48
46
  },
49
47
  "peerDependencies": {
50
48
  "@angular/compiler-cli": ">=19.0.0 <21.0.0",
@@ -54,16 +52,44 @@
54
52
  "sourceRoot": "packages/angular-rspack-compiler/src",
55
53
  "projectType": "library",
56
54
  "name": "angular-rspack-compiler",
57
- "tags": [
58
- "publishable"
59
- ],
55
+ "release": {
56
+ "version": {
57
+ "preserveLocalDependencyProtocols": true,
58
+ "manifestRootsToUpdate": [
59
+ "packages/{projectName}"
60
+ ]
61
+ }
62
+ },
60
63
  "targets": {
61
- "code-pushup": {},
62
- "integration-test": {
63
- "configName": "vitest.integration.config.mts"
64
+ "build": {
65
+ "command": "node ./scripts/copy-readme.js angular-rspack-compiler packages/angular-rspack-compiler/README.md__tpl__ packages/angular-rspack-compiler/README.md",
66
+ "outputs": [
67
+ "{projectRoot}/README.md"
68
+ ]
69
+ },
70
+ "test": {
71
+ "dependsOn": [
72
+ "^build-native"
73
+ ],
74
+ "inputs": [
75
+ "default",
76
+ "^production",
77
+ "{projectRoot}/vitest.config.mts"
78
+ ],
79
+ "options": {
80
+ "args": [
81
+ "--passWithNoTests"
82
+ ]
83
+ }
64
84
  },
65
- "unit-test": {
66
- "configName": "vitest.unit.config.mts"
85
+ "nx-release-publish": {
86
+ "executor": "@nx/js:release-publish",
87
+ "options": {
88
+ "packageRoot": "packages/angular-rspack-compiler"
89
+ },
90
+ "dependsOn": [
91
+ "^nx-release-publish"
92
+ ]
67
93
  }
68
94
  }
69
95
  },
@@ -7,8 +7,6 @@ function main() {
7
7
  const fileContentsJson = JSON.parse(
8
8
  readFileSync(angularBuildPackageJson, 'utf8')
9
9
  );
10
- fileContentsJson.exports['./src/tools/esbuild/javascript-transformer'] =
11
- './src/tools/esbuild/javascript-transformer.js';
12
10
  fileContentsJson.exports[
13
11
  './src/tools/angular/compilation/parallel-compilation'
14
12
  ] = './src/tools/angular/compilation/parallel-compilation.js';