@unocss/vite 0.12.2 → 0.12.4
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.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -517,10 +517,9 @@ function defineConfig(config) {
|
|
|
517
517
|
return config;
|
|
518
518
|
}
|
|
519
519
|
function UnocssPlugin(configOrPath, defaults = {}) {
|
|
520
|
-
var _a;
|
|
521
520
|
const ctx = createContext(configOrPath, defaults);
|
|
522
521
|
const { config } = ctx;
|
|
523
|
-
const mode =
|
|
522
|
+
const mode = config.mode ?? "global";
|
|
524
523
|
const plugins = [
|
|
525
524
|
ConfigHMRPlugin(ctx)
|
|
526
525
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -483,10 +483,9 @@ function defineConfig(config) {
|
|
|
483
483
|
return config;
|
|
484
484
|
}
|
|
485
485
|
function UnocssPlugin(configOrPath, defaults = {}) {
|
|
486
|
-
var _a;
|
|
487
486
|
const ctx = createContext(configOrPath, defaults);
|
|
488
487
|
const { config } = ctx;
|
|
489
|
-
const mode =
|
|
488
|
+
const mode = config.mode ?? "global";
|
|
490
489
|
const plugins = [
|
|
491
490
|
ConfigHMRPlugin(ctx)
|
|
492
491
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@rollup/pluginutils": "^4.1.1",
|
|
37
|
-
"@unocss/config": "0.12.
|
|
38
|
-
"@unocss/core": "0.12.
|
|
39
|
-
"@unocss/
|
|
40
|
-
"@unocss/
|
|
37
|
+
"@unocss/config": "0.12.4",
|
|
38
|
+
"@unocss/core": "0.12.4",
|
|
39
|
+
"@unocss/inspector": "0.12.4",
|
|
40
|
+
"@unocss/scope": "0.12.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"vite": "^2.6.
|
|
43
|
+
"vite": "^2.6.14"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup",
|