@unocss/webpack 0.45.18 → 0.45.19
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -126,7 +126,10 @@ const VIRTUAL_ENTRY_ALIAS = [
|
|
|
126
126
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
127
127
|
];
|
|
128
128
|
const LAYER_MARK_ALL = "__ALL__";
|
|
129
|
+
const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
129
130
|
function resolveId(id) {
|
|
131
|
+
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
132
|
+
return id;
|
|
130
133
|
for (const alias of VIRTUAL_ENTRY_ALIAS) {
|
|
131
134
|
const match = id.match(alias);
|
|
132
135
|
if (match) {
|
package/dist/index.mjs
CHANGED
|
@@ -116,7 +116,10 @@ const VIRTUAL_ENTRY_ALIAS = [
|
|
|
116
116
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
117
117
|
];
|
|
118
118
|
const LAYER_MARK_ALL = "__ALL__";
|
|
119
|
+
const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
119
120
|
function resolveId(id) {
|
|
121
|
+
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
122
|
+
return id;
|
|
120
123
|
for (const alias of VIRTUAL_ENTRY_ALIAS) {
|
|
121
124
|
const match = id.match(alias);
|
|
122
125
|
if (match) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.19",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ampproject/remapping": "^2.2.0",
|
|
40
40
|
"@rollup/pluginutils": "^4.2.1",
|
|
41
|
-
"@unocss/config": "0.45.
|
|
42
|
-
"@unocss/core": "0.45.
|
|
43
|
-
"magic-string": "^0.26.
|
|
44
|
-
"unplugin": "^0.9.
|
|
41
|
+
"@unocss/config": "0.45.19",
|
|
42
|
+
"@unocss/core": "0.45.19",
|
|
43
|
+
"magic-string": "^0.26.3",
|
|
44
|
+
"unplugin": "^0.9.5",
|
|
45
45
|
"webpack-sources": "^3.2.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|