@nx/angular-rspack-compiler 23.0.0-beta.2 → 23.0.0-beta.21
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/dist/compilation/build-and-analyze.d.ts.map +1 -1
- package/dist/compilation/build-and-analyze.js +2 -0
- package/dist/compilation/setup-compilation.d.ts.map +1 -1
- package/dist/compilation/setup-compilation.js +2 -0
- package/dist/compilation/setup-with-angular-compilation.js +1 -1
- package/dist/utils/assert-supported-versions.d.ts +2 -0
- package/dist/utils/assert-supported-versions.d.ts.map +1 -0
- package/dist/utils/assert-supported-versions.js +9 -0
- package/dist/utils/versions.d.ts +3 -0
- package/dist/utils/versions.d.ts.map +1 -0
- package/dist/utils/versions.js +5 -0
- package/package.json +5 -4
|
@@ -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,wBAAwB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
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;AAK/C,wBAAsB,eAAe,CACnC,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,EACrD,qBAAqB,EAAE,qBAAqB,iBA8B7C"}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildAndAnalyze = buildAndAnalyze;
|
|
4
4
|
const path_1 = require("path");
|
|
5
|
+
const assert_supported_versions_1 = require("../utils/assert-supported-versions");
|
|
5
6
|
const JS_TS_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
|
|
6
7
|
async function buildAndAnalyze(angularCompilation, typescriptFileCache, javascriptTransformer) {
|
|
8
|
+
(0, assert_supported_versions_1.assertSupportedAngularRspackCompilerVersions)();
|
|
7
9
|
for (const { filename, contents, } of await angularCompilation.emitAffectedFiles()) {
|
|
8
10
|
const normalizedFilename = (0, path_1.normalize)(filename.replace(/^[A-Z]:/, ''));
|
|
9
11
|
// Skip JavaScript transformation for non-JS/TS files (JSON, CSS, etc.)
|
|
@@ -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;
|
|
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;AAG5E,OAAO,EACL,0BAA0B,EAI3B,MAAM,wBAAwB,CAAC;AAKhC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AAED,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;AAKF,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,EAC9C,OAAO,EAAE,uBAAuB;;;;GAyEjC;AAED,wBAAgB,cAAc,CAC5B,0BAA0B,EAAE,0BAA0B,IAGpD,QAAQ,MAAM,EACd,gBAAgB,MAAM,EACtB,iBAAiB,MAAM,KACtB,OAAO,CAAC,yBAAyB,CAAC,CAmCtC"}
|
|
@@ -4,6 +4,7 @@ exports.DEFAULT_NG_COMPILER_OPTIONS = void 0;
|
|
|
4
4
|
exports.setupCompilation = setupCompilation;
|
|
5
5
|
exports.styleTransform = styleTransform;
|
|
6
6
|
const utils_1 = require("../utils");
|
|
7
|
+
const assert_supported_versions_1 = require("../utils/assert-supported-versions");
|
|
7
8
|
const private_1 = require("@angular/build/private");
|
|
8
9
|
const targets_from_browsers_1 = require("../utils/targets-from-browsers");
|
|
9
10
|
const private_2 = require("@angular/build/private");
|
|
@@ -25,6 +26,7 @@ exports.DEFAULT_NG_COMPILER_OPTIONS = {
|
|
|
25
26
|
};
|
|
26
27
|
let COMPONENT_STYLESHEET_BUNDLER = undefined;
|
|
27
28
|
async function setupCompilation(config, options) {
|
|
29
|
+
(0, assert_supported_versions_1.assertSupportedAngularRspackCompilerVersions)();
|
|
28
30
|
const { readConfiguration } = await (0, utils_1.loadCompilerCli)();
|
|
29
31
|
const { options: tsCompilerOptions, rootNames } = readConfiguration(config.source?.tsconfigPath ?? options.tsConfig, {
|
|
30
32
|
...exports.DEFAULT_NG_COMPILER_OPTIONS,
|
|
@@ -5,7 +5,7 @@ const models_1 = require("../models");
|
|
|
5
5
|
const setup_compilation_1 = require("./setup-compilation");
|
|
6
6
|
async function setupCompilationWithAngularCompilation(config, options, sourceFileCache, angularCompilation, modifiedFiles) {
|
|
7
7
|
const { rootNames, compilerOptions, componentStylesheetBundler } = await (0, setup_compilation_1.setupCompilation)(config, options);
|
|
8
|
-
angularCompilation ?? (angularCompilation = await (0, models_1.createAngularCompilation)(!options.aot, options.hasServer, false));
|
|
8
|
+
angularCompilation ?? (angularCompilation = await (0, models_1.createAngularCompilation)(!options.aot, !options.hasServer, false));
|
|
9
9
|
modifiedFiles ?? (modifiedFiles = new Set(rootNames));
|
|
10
10
|
const fileReplacements = options.fileReplacements.reduce((r, f) => {
|
|
11
11
|
r[f.replace] = f.with;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-supported-versions.d.ts","sourceRoot":"","sources":["../../src/utils/assert-supported-versions.ts"],"names":[],"mappings":"AAMA,wBAAgB,4CAA4C,IAAI,IAAI,CASnE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertSupportedAngularRspackCompilerVersions = assertSupportedAngularRspackCompilerVersions;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
function assertSupportedAngularRspackCompilerVersions() {
|
|
7
|
+
(0, internal_1.assertSupportedInstalledPackageVersion)('@angular/build', versions_1.minSupportedAngularBuildVersion);
|
|
8
|
+
(0, internal_1.assertSupportedInstalledPackageVersion)('@rsbuild/core', versions_1.minSupportedRsbuildCoreVersion);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,WAAW,CAAC;AACxD,eAAO,MAAM,8BAA8B,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.minSupportedRsbuildCoreVersion = exports.minSupportedAngularBuildVersion = void 0;
|
|
4
|
+
exports.minSupportedAngularBuildVersion = '19.0.0';
|
|
5
|
+
exports.minSupportedRsbuildCoreVersion = '1.0.5';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular-rspack-compiler",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "23.0.0-beta.
|
|
4
|
+
"version": "23.0.0-beta.21",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -34,19 +34,20 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@angular/build": ">= 19.0.0 < 22.0.0",
|
|
38
37
|
"sass-embedded": "^1.97.2",
|
|
39
38
|
"semver": "^7.6.3",
|
|
40
39
|
"ts-morph": "^27.0.2",
|
|
41
40
|
"tslib": "^2.3.0",
|
|
42
|
-
"typescript": "~5.9.2"
|
|
41
|
+
"typescript": "~5.9.2",
|
|
42
|
+
"@nx/devkit": "23.0.0-beta.21"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"jsonc-eslint-parser": "^2.4.0",
|
|
46
|
-
"vitest": "^4.0.
|
|
46
|
+
"vitest": "^4.0.0",
|
|
47
47
|
"memfs": "^4.17.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
+
"@angular/build": ">= 19.0.0 < 22.0.0",
|
|
50
51
|
"@angular/compiler-cli": ">= 19.0.0 < 22.0.0",
|
|
51
52
|
"@rsbuild/core": ">=1.0.5 <2.0.0"
|
|
52
53
|
},
|