@nx/rspack 21.5.0-canary.20250819-2307a8d → 21.5.0-canary.20250822-2e39402
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
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": "21.5.0-canary.
|
|
4
|
+
"version": "21.5.0-canary.20250822-2e39402",
|
|
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/js": "21.5.0-canary.
|
|
28
|
-
"@nx/devkit": "21.5.0-canary.
|
|
29
|
-
"@nx/web": "21.5.0-canary.
|
|
30
|
-
"@nx/module-federation": "21.5.0-canary.
|
|
27
|
+
"@nx/js": "21.5.0-canary.20250822-2e39402",
|
|
28
|
+
"@nx/devkit": "21.5.0-canary.20250822-2e39402",
|
|
29
|
+
"@nx/web": "21.5.0-canary.20250822-2e39402",
|
|
30
|
+
"@nx/module-federation": "21.5.0-canary.20250822-2e39402",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.3.8",
|
|
33
33
|
"@rspack/dev-server": "^1.1.1",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"postcss-loader": "^8.1.1",
|
|
54
54
|
"postcss": "^8.4.38",
|
|
55
55
|
"tslib": "^2.3.0",
|
|
56
|
-
"webpack": "^5.
|
|
56
|
+
"webpack": "^5.101.3",
|
|
57
57
|
"webpack-node-externals": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"nx": "21.5.0-canary.
|
|
61
|
-
"@nx/nest": "21.5.0-canary.
|
|
60
|
+
"nx": "21.5.0-canary.20250822-2e39402",
|
|
61
|
+
"@nx/nest": "21.5.0-canary.20250822-2e39402"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@module-federation/enhanced": "^0.18.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postcss-cli-resources.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rspack/src/plugins/utils/plugins/postcss-cli-resources.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAalD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAgBD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;
|
|
1
|
+
{"version":3,"file":"postcss-cli-resources.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rspack/src/plugins/utils/plugins/postcss-cli-resources.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAalD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAgBD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;EA8JtE"}
|
|
@@ -4,7 +4,6 @@ exports.PostcssCliResources = PostcssCliResources;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const loader_utils_1 = require("loader-utils");
|
|
6
6
|
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
const url = tslib_1.__importStar(require("node:url"));
|
|
8
7
|
function wrapUrl(url) {
|
|
9
8
|
let wrappedUrl;
|
|
10
9
|
const hasSingleQuotes = url.indexOf("'") >= 0;
|
|
@@ -68,7 +67,9 @@ function PostcssCliResources(options) {
|
|
|
68
67
|
resourceCache.set(cacheKey, outputUrl);
|
|
69
68
|
return outputUrl;
|
|
70
69
|
}
|
|
71
|
-
const
|
|
70
|
+
const normalizedUrl = inputUrl.replace(/\\/g, '/');
|
|
71
|
+
const parsedUrl = new URL(normalizedUrl, 'file:///');
|
|
72
|
+
const { pathname, hash, search } = parsedUrl;
|
|
72
73
|
const resolver = (file, base) => new Promise((resolve, reject) => {
|
|
73
74
|
loader.resolve(base, decodeURI(file), (err, result) => {
|
|
74
75
|
if (err) {
|
|
@@ -93,11 +94,11 @@ function PostcssCliResources(options) {
|
|
|
93
94
|
loader.emitFile(outputPath, content, undefined);
|
|
94
95
|
let outputUrl = outputPath.replace(/\\/g, '/');
|
|
95
96
|
if (hash || search) {
|
|
96
|
-
outputUrl =
|
|
97
|
+
outputUrl = outputUrl + (search || '') + (hash || '');
|
|
97
98
|
}
|
|
98
99
|
const loaderOptions = loader.loaders[loader.loaderIndex].options;
|
|
99
100
|
if (deployUrl && loaderOptions.ident !== 'extracted') {
|
|
100
|
-
outputUrl =
|
|
101
|
+
outputUrl = new URL(outputUrl, deployUrl).href;
|
|
101
102
|
}
|
|
102
103
|
resourceCache.set(cacheKey, outputUrl);
|
|
103
104
|
resolve(outputUrl);
|