@unocss/webpack 0.44.7 → 0.45.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 +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,10 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
42
42
|
rawConfig = result.config;
|
|
43
43
|
uno.setConfig(rawConfig);
|
|
44
44
|
uno.config.envMode = "dev";
|
|
45
|
-
rollupFilter = pluginutils.createFilter(
|
|
45
|
+
rollupFilter = pluginutils.createFilter(
|
|
46
|
+
rawConfig.include || defaultInclude,
|
|
47
|
+
rawConfig.exclude || defaultExclude
|
|
48
|
+
);
|
|
46
49
|
tokens.clear();
|
|
47
50
|
await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
|
|
48
51
|
invalidate();
|
|
@@ -195,7 +198,9 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
195
198
|
});
|
|
196
199
|
const nonPreTransformers = ctx.uno.config.transformers?.filter((i) => i.enforce !== "pre");
|
|
197
200
|
if (nonPreTransformers?.length) {
|
|
198
|
-
console.warn(
|
|
201
|
+
console.warn(
|
|
202
|
+
'[unocss] webpack integration only supports "pre" enforce transformers currently.the following transformers will be ignored\n' + nonPreTransformers.map((i) => ` - ${i.name}`).join("\n")
|
|
203
|
+
);
|
|
199
204
|
}
|
|
200
205
|
const tasks = [];
|
|
201
206
|
const entries = /* @__PURE__ */ new Set();
|
package/dist/index.mjs
CHANGED
|
@@ -32,7 +32,10 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
32
32
|
rawConfig = result.config;
|
|
33
33
|
uno.setConfig(rawConfig);
|
|
34
34
|
uno.config.envMode = "dev";
|
|
35
|
-
rollupFilter = createFilter(
|
|
35
|
+
rollupFilter = createFilter(
|
|
36
|
+
rawConfig.include || defaultInclude,
|
|
37
|
+
rawConfig.exclude || defaultExclude
|
|
38
|
+
);
|
|
36
39
|
tokens.clear();
|
|
37
40
|
await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
|
|
38
41
|
invalidate();
|
|
@@ -185,7 +188,9 @@ function WebpackPlugin(configOrPath, defaults) {
|
|
|
185
188
|
});
|
|
186
189
|
const nonPreTransformers = ctx.uno.config.transformers?.filter((i) => i.enforce !== "pre");
|
|
187
190
|
if (nonPreTransformers?.length) {
|
|
188
|
-
console.warn(
|
|
191
|
+
console.warn(
|
|
192
|
+
'[unocss] webpack integration only supports "pre" enforce transformers currently.the following transformers will be ignored\n' + nonPreTransformers.map((i) => ` - ${i.name}`).join("\n")
|
|
193
|
+
);
|
|
189
194
|
}
|
|
190
195
|
const tasks = [];
|
|
191
196
|
const entries = /* @__PURE__ */ new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ampproject/remapping": "^2.2.0",
|
|
40
40
|
"@rollup/pluginutils": "^4.2.1",
|
|
41
|
-
"@unocss/config": "0.
|
|
42
|
-
"@unocss/core": "0.
|
|
41
|
+
"@unocss/config": "0.45.1",
|
|
42
|
+
"@unocss/core": "0.45.1",
|
|
43
43
|
"magic-string": "^0.26.2",
|
|
44
|
-
"unplugin": "^0.
|
|
44
|
+
"unplugin": "^0.8.0",
|
|
45
45
|
"webpack-sources": "^3.2.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/webpack": "^5.28.0",
|
|
49
49
|
"@types/webpack-sources": "^3.2.0",
|
|
50
|
-
"webpack": "^5.
|
|
50
|
+
"webpack": "^5.74.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "unbuild",
|