@nx/rspack 22.7.0-beta.16 → 22.7.0-beta.17
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/package.json +7 -7
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +1 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.js +1 -7
- package/src/generators/init/init.d.ts.map +1 -1
- package/src/generators/init/init.js +0 -1
- package/src/utils/generator-utils.d.ts.map +1 -1
- package/src/utils/generator-utils.js +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rspack",
|
|
3
3
|
"description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
|
|
4
|
-
"version": "22.7.0-beta.
|
|
4
|
+
"version": "22.7.0-beta.17",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"generators": "./generators.json",
|
|
25
25
|
"executors": "./executors.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nx/devkit": "22.7.0-beta.
|
|
28
|
-
"@nx/js": "22.7.0-beta.
|
|
29
|
-
"@nx/module-federation": "22.7.0-beta.
|
|
30
|
-
"@nx/web": "22.7.0-beta.
|
|
27
|
+
"@nx/devkit": "22.7.0-beta.17",
|
|
28
|
+
"@nx/js": "22.7.0-beta.17",
|
|
29
|
+
"@nx/module-federation": "22.7.0-beta.17",
|
|
30
|
+
"@nx/web": "22.7.0-beta.17",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
32
32
|
"@rspack/core": "1.6.8",
|
|
33
33
|
"@rspack/dev-server": "^1.1.4",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"webpack-node-externals": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"nx": "22.7.0-beta.
|
|
61
|
-
"@nx/nest": "22.7.0-beta.
|
|
60
|
+
"nx": "22.7.0-beta.17",
|
|
61
|
+
"@nx/nest": "22.7.0-beta.17"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@module-federation/enhanced": "^2.3.3",
|
package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation-static-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/module-federation-static-server/module-federation-static-server.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAE1F,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"module-federation-static-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/module-federation-static-server/module-federation-static-server.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAE1F,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAgJ9D,wBAAgB,YAAY,CAC1B,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gCAAgC,EAClD,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChD,UAAU,CAAC,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,QAmEvD;AAED,wBAA+B,4BAA4B,CACzD,MAAM,EAAE,kCAAkC,EAC1C,OAAO,EAAE,eAAe;;;aA+IzB"}
|
package/src/executors/module-federation-static-server/module-federation-static-server.impl.js
CHANGED
|
@@ -50,9 +50,7 @@ async function buildHost(nxBin, buildTarget, context) {
|
|
|
50
50
|
stdio: ['ignore', 'pipe', 'pipe', 'ipc'],
|
|
51
51
|
});
|
|
52
52
|
staticProcess.stdout.on('data', (data) => {
|
|
53
|
-
const ANSII_CODE_REGEX =
|
|
54
|
-
// eslint-disable-next-line no-control-regex
|
|
55
|
-
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
|
53
|
+
const ANSII_CODE_REGEX = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
|
56
54
|
const stdoutString = data.toString().replace(ANSII_CODE_REGEX, '');
|
|
57
55
|
// in addition to writing into the stdout stream, also show error directly in console
|
|
58
56
|
// so the error is easily discoverable. 'ERROR in' is the key word to search in webpack output.
|
|
@@ -105,9 +103,7 @@ function moveToTmpDirectory(staticRemotesConfig, hostOutputPath, hostUrlSegment)
|
|
|
105
103
|
return commonOutputDirectory;
|
|
106
104
|
}
|
|
107
105
|
function startProxies(staticRemotesConfig, hostServeOptions, mappedLocationOfHost, mappedLocationsOfRemotes, sslOptions) {
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
109
106
|
const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
110
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
111
107
|
const express = require('express');
|
|
112
108
|
let sslCert;
|
|
113
109
|
let sslKey;
|
|
@@ -121,9 +117,7 @@ function startProxies(staticRemotesConfig, hostServeOptions, mappedLocationOfHos
|
|
|
121
117
|
devkit_1.logger.warn(`Attempted to find '${sslOptions.pathToCert}' and '${sslOptions.pathToKey}'.`);
|
|
122
118
|
}
|
|
123
119
|
}
|
|
124
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
125
120
|
const http = require('http');
|
|
126
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
127
121
|
const https = require('https');
|
|
128
122
|
devkit_1.logger.info(`NX Starting static remotes proxies...`);
|
|
129
123
|
for (const app of staticRemotesConfig.remotes) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,8BAyG5B;AAED,eAAe,mBAAmB,CAAC;AAEnC,eAAO,MAAM,mBAAmB,sFAA0C,CAAC"}
|
|
@@ -69,7 +69,6 @@ async function rspackInitGenerator(tree, schema) {
|
|
|
69
69
|
}
|
|
70
70
|
: {}),
|
|
71
71
|
};
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
73
72
|
const version = require('../../../package.json').version;
|
|
74
73
|
if (version !== '0.0.1') {
|
|
75
74
|
// Ignored for local dev / e2e tests.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rspack/src/utils/generator-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAML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AC,EAAE,MAAM,QAa/B;AAID,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,MAAM,QA8DpB;AAED,wBAAgB,mCAAmC,CACjD,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAQR;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,MAAM,UAchB;AAED,wBAAsB,oCAAoC,CACxD,+BAA+B,EAAE,WAAW,EAC5C,sBAAsB,EAAE,sBAAsB,EAC9C,oBAAoB,EAAE,oBAAoB,EAC1C,SAAS,EAAE,SAAS,iBAuBrB;AAqCD,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"generator-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rspack/src/utils/generator-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,mBAAmB,EACnB,IAAI,EAEL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AACvC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAKnE,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE;IACP,CAAC,UAAU,EAAE,MAAM,GAAG,mB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,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IACP,CAAC,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;CAChD,GACA;IAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAE,CAmEnD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,mBAAmB,UASrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,mBAAmB,UAYzE"}
|
|
@@ -442,7 +442,6 @@ async function handleUnsupportedUserProvidedTargetsErrors(userProvidedTargetName
|
|
|
442
442
|
Please note that converting a potentially non-compatible project to use Vite may result in unexpected behavior. Always commit
|
|
443
443
|
your changes before converting a project to use Vite, and test the converted project thoroughly before deploying it.
|
|
444
444
|
`);
|
|
445
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
446
445
|
const { Confirm } = require('enquirer');
|
|
447
446
|
const prompt = new Confirm({
|
|
448
447
|
name: 'question',
|
|
@@ -472,7 +471,6 @@ async function handleUnknownExecutors(projectName) {
|
|
|
472
471
|
If you still want to convert your project to use the @nx/rspack executors,
|
|
473
472
|
please make sure to commit your changes before running this generator.
|
|
474
473
|
`);
|
|
475
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
476
474
|
const { Confirm } = require('enquirer');
|
|
477
475
|
const prompt = new Confirm({
|
|
478
476
|
name: 'question',
|
|
@@ -489,7 +487,6 @@ async function handleUnknownExecutors(projectName) {
|
|
|
489
487
|
}
|
|
490
488
|
function determineFrameworkAndTarget(tree, options, projectRoot, targets) {
|
|
491
489
|
(0, ensure_typescript_1.ensureTypescript)();
|
|
492
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
493
490
|
const { ast, query } = require('@phenomnomnominal/tsquery');
|
|
494
491
|
// First try to infer if the target is node
|
|
495
492
|
if (options.target !== 'node') {
|