@unocss/webpack 0.65.0-beta.2 → 0.65.0
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/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/rspack.cjs
CHANGED
package/dist/rspack.mjs
CHANGED
|
@@ -435,7 +435,7 @@ function unplugin(configOrPath, defaults) {
|
|
|
435
435
|
return;
|
|
436
436
|
lastTokenSize = tokens.size;
|
|
437
437
|
Array.from(plugin.__vfsModules).forEach((id) => {
|
|
438
|
-
let path = decodeURIComponent(id.slice(plugin.__virtualModulePrefix.length));
|
|
438
|
+
let path = decodeURIComponent(id.startsWith(plugin.__virtualModulePrefix) ? id.slice(plugin.__virtualModulePrefix.length) : id);
|
|
439
439
|
path = normalizeAbsolutePath(path);
|
|
440
440
|
const layer = resolveLayer(path);
|
|
441
441
|
if (!layer)
|
|
@@ -425,7 +425,7 @@ function unplugin(configOrPath, defaults) {
|
|
|
425
425
|
return;
|
|
426
426
|
lastTokenSize = tokens.size;
|
|
427
427
|
Array.from(plugin.__vfsModules).forEach((id) => {
|
|
428
|
-
let path = decodeURIComponent(id.slice(plugin.__virtualModulePrefix.length));
|
|
428
|
+
let path = decodeURIComponent(id.startsWith(plugin.__virtualModulePrefix) ? id.slice(plugin.__virtualModulePrefix.length) : id);
|
|
429
429
|
path = normalizeAbsolutePath(path);
|
|
430
430
|
const layer = resolveLayer(path);
|
|
431
431
|
if (!layer)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.0
|
|
4
|
+
"version": "0.65.0",
|
|
5
5
|
"description": "The Webpack plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"tinyglobby": "^0.2.10",
|
|
60
60
|
"unplugin": "^1.15.0",
|
|
61
61
|
"webpack-sources": "^3.2.3",
|
|
62
|
-
"@unocss/config": "0.65.0
|
|
63
|
-
"@unocss/core": "0.65.0
|
|
62
|
+
"@unocss/config": "0.65.0",
|
|
63
|
+
"@unocss/core": "0.65.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/webpack": "^5.28.5",
|