@unocss/webpack 0.39.3 → 0.41.1
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -171,8 +171,12 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
171
171
|
resolveId(id) {
|
|
172
172
|
const entry = resolveId(id);
|
|
173
173
|
if (entry) {
|
|
174
|
+
let query = "";
|
|
175
|
+
const queryIndex = id.indexOf("?");
|
|
176
|
+
if (queryIndex >= 0)
|
|
177
|
+
query = id.slice(queryIndex);
|
|
174
178
|
entries.add(entry);
|
|
175
|
-
return entry;
|
|
179
|
+
return entry + query;
|
|
176
180
|
}
|
|
177
181
|
},
|
|
178
182
|
load(id) {
|
package/dist/index.mjs
CHANGED
|
@@ -163,8 +163,12 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
163
163
|
resolveId(id) {
|
|
164
164
|
const entry = resolveId(id);
|
|
165
165
|
if (entry) {
|
|
166
|
+
let query = "";
|
|
167
|
+
const queryIndex = id.indexOf("?");
|
|
168
|
+
if (queryIndex >= 0)
|
|
169
|
+
query = id.slice(queryIndex);
|
|
166
170
|
entries.add(entry);
|
|
167
|
-
return entry;
|
|
171
|
+
return entry + query;
|
|
168
172
|
}
|
|
169
173
|
},
|
|
170
174
|
load(id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.1",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@rollup/pluginutils": "^4.2.1",
|
|
40
|
-
"@unocss/config": "0.
|
|
41
|
-
"@unocss/core": "0.
|
|
42
|
-
"unplugin": "^0.
|
|
40
|
+
"@unocss/config": "0.41.1",
|
|
41
|
+
"@unocss/core": "0.41.1",
|
|
42
|
+
"unplugin": "^0.7.0",
|
|
43
43
|
"webpack-sources": "^3.2.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/webpack": "^5.28.0",
|
|
47
47
|
"@types/webpack-sources": "^3.2.0",
|
|
48
|
-
"webpack": "^5.
|
|
48
|
+
"webpack": "^5.73.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|