@unocss/webpack 0.50.5 → 0.50.7
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/README.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +5 -5
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -212,15 +212,15 @@ const VIRTUAL_ENTRY_ALIAS = [
|
|
|
212
212
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
213
213
|
];
|
|
214
214
|
const LAYER_MARK_ALL = "__ALL__";
|
|
215
|
-
const RESOLVED_ID_WITH_QUERY_RE =
|
|
216
|
-
const RESOLVED_ID_RE =
|
|
215
|
+
const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
216
|
+
const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
|
|
217
217
|
function resolveId(id) {
|
|
218
218
|
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
219
219
|
return id;
|
|
220
220
|
for (const alias of VIRTUAL_ENTRY_ALIAS) {
|
|
221
221
|
const match = id.match(alias);
|
|
222
222
|
if (match) {
|
|
223
|
-
return match[1] ?
|
|
223
|
+
return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -200,15 +200,15 @@ const VIRTUAL_ENTRY_ALIAS = [
|
|
|
200
200
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
201
201
|
];
|
|
202
202
|
const LAYER_MARK_ALL = "__ALL__";
|
|
203
|
-
const RESOLVED_ID_WITH_QUERY_RE =
|
|
204
|
-
const RESOLVED_ID_RE =
|
|
203
|
+
const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
204
|
+
const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
|
|
205
205
|
function resolveId(id) {
|
|
206
206
|
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
207
207
|
return id;
|
|
208
208
|
for (const alias of VIRTUAL_ENTRY_ALIAS) {
|
|
209
209
|
const match = id.match(alias);
|
|
210
210
|
if (match) {
|
|
211
|
-
return match[1] ?
|
|
211
|
+
return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.7",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"magic-string": "^0.30.0",
|
|
44
44
|
"unplugin": "^1.3.1",
|
|
45
45
|
"webpack-sources": "^3.2.3",
|
|
46
|
-
"@unocss/config": "0.50.
|
|
47
|
-
"@unocss/core": "0.50.
|
|
46
|
+
"@unocss/config": "0.50.7",
|
|
47
|
+
"@unocss/core": "0.50.7"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/webpack": "^5.28.
|
|
50
|
+
"@types/webpack": "^5.28.1",
|
|
51
51
|
"@types/webpack-sources": "^3.2.0",
|
|
52
|
-
"webpack": "^5.
|
|
52
|
+
"webpack": "^5.77.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "unbuild",
|