@nx/rspack 22.0.0-beta.2 → 22.0.0-beta.3
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": "22.0.0-beta.
|
|
4
|
+
"version": "22.0.0-beta.3",
|
|
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.0.0-beta.
|
|
28
|
-
"@nx/js": "22.0.0-beta.
|
|
29
|
-
"@nx/module-federation": "22.0.0-beta.
|
|
30
|
-
"@nx/web": "22.0.0-beta.
|
|
27
|
+
"@nx/devkit": "22.0.0-beta.3",
|
|
28
|
+
"@nx/js": "22.0.0-beta.3",
|
|
29
|
+
"@nx/module-federation": "22.0.0-beta.3",
|
|
30
|
+
"@nx/web": "22.0.0-beta.3",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.5.0",
|
|
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.0.0-beta.
|
|
61
|
-
"@nx/nest": "22.0.0-beta.
|
|
60
|
+
"nx": "22.0.0-beta.3",
|
|
61
|
+
"@nx/nest": "22.0.0-beta.3"
|
|
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":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"postcss-cli-resources.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rspack/src/plugins/utils/plugins/postcss-cli-resources.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAuBlD,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"}
|
|
@@ -15,6 +15,15 @@ function wrapUrl(url) {
|
|
|
15
15
|
}
|
|
16
16
|
return `url(${wrappedUrl})`;
|
|
17
17
|
}
|
|
18
|
+
function resolveUrl(from, to) {
|
|
19
|
+
const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
|
|
20
|
+
if (resolvedUrl.protocol === 'resolve:') {
|
|
21
|
+
// `from` is a relative URL.
|
|
22
|
+
const { pathname, search, hash } = resolvedUrl;
|
|
23
|
+
return pathname + search + hash;
|
|
24
|
+
}
|
|
25
|
+
return resolvedUrl.toString();
|
|
26
|
+
}
|
|
18
27
|
async function resolve(file, base, resolver) {
|
|
19
28
|
try {
|
|
20
29
|
return await resolver(`./${file}`, base);
|
|
@@ -98,7 +107,7 @@ function PostcssCliResources(options) {
|
|
|
98
107
|
}
|
|
99
108
|
const loaderOptions = loader.loaders[loader.loaderIndex].options;
|
|
100
109
|
if (deployUrl && loaderOptions.ident !== 'extracted') {
|
|
101
|
-
outputUrl =
|
|
110
|
+
outputUrl = resolveUrl(deployUrl, outputUrl);
|
|
102
111
|
}
|
|
103
112
|
resourceCache.set(cacheKey, outputUrl);
|
|
104
113
|
resolve(outputUrl);
|