@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 +18 -17
- package/README.md +75 -3
- package/README.md__tpl__ +24 -0
- package/dist/compilation/build-and-analyze.d.ts +1 -1
- package/dist/compilation/build-and-analyze.d.ts.map +1 -1
- package/dist/compilation/setup-compilation.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +4 -4
- package/dist/utils/component-resolvers.d.ts +1 -1
- package/dist/utils/component-resolvers.d.ts.map +1 -1
- package/dist/utils/source-file-cache.d.ts +4 -4
- package/dist/utils/source-file-cache.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +2 -2
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +44 -18
- package/patch/patch-angular-build.js +0 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
MIT License
|
|
1
|
+
(The MIT License)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025
|
|
3
|
+
Copyright (c) 2017-2025 Narwhal Technologies Inc.
|
|
4
4
|
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
of this software and associated documentation files (the
|
|
7
|
-
in the Software without restriction, including
|
|
8
|
-
to use, copy, modify, merge, publish,
|
|
9
|
-
copies of the Software, and to
|
|
10
|
-
furnished to do so, subject to
|
|
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
|
|
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
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
20
|
-
|
|
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
|
-
|
|
10
|
+
[](https://circleci.com/gh/nrwl/nx)
|
|
11
|
+
[]()
|
|
12
|
+
[](https://www.npmjs.com/package/nx)
|
|
13
|
+
[]()
|
|
14
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
15
|
+
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
16
|
+
[](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
|
|
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.
|
package/README.md__tpl__
ADDED
|
@@ -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/
|
|
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,
|
|
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,
|
|
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"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JavaScriptTransformer } from '@angular/build/
|
|
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,
|
|
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"}
|
package/dist/models/index.js
CHANGED
|
@@ -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
|
|
6
|
-
Object.defineProperty(exports, "JavaScriptTransformer", { enumerable: true, get: function () { return
|
|
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
|
|
16
|
-
Object.defineProperty(exports, "SourceFileCache", { enumerable: true, get: function () { return
|
|
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):
|
|
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,
|
|
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
|
|
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
|
|
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,
|
|
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"}
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -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[]):
|
|
5
|
-
export declare function normalizeQuotes(str?: string): string
|
|
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,
|
|
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": "
|
|
9
|
+
"author": "Victor Savkin",
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/nrwl/
|
|
12
|
+
"url": "https://github.com/nrwl/nx/issues"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
15
|
-
"url": "https://github.com/nrwl/
|
|
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.
|
|
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.
|
|
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": "^
|
|
47
|
-
"
|
|
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
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
55
|
+
"release": {
|
|
56
|
+
"version": {
|
|
57
|
+
"preserveLocalDependencyProtocols": true,
|
|
58
|
+
"manifestRootsToUpdate": [
|
|
59
|
+
"packages/{projectName}"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
60
63
|
"targets": {
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
"
|
|
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
|
-
"
|
|
66
|
-
"
|
|
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';
|