@unocss/vite 0.37.3 → 0.37.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.cjs +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,15 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
73
73
|
tokens.clear();
|
|
74
74
|
await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
|
|
75
75
|
invalidate();
|
|
76
|
+
const presets = /* @__PURE__ */ new Set();
|
|
77
|
+
uno.config.presets.forEach((i) => {
|
|
78
|
+
if (!i.name)
|
|
79
|
+
return;
|
|
80
|
+
if (presets.has(i.name))
|
|
81
|
+
console.warn(`[unocss] duplication of preset ${i.name} found, there might be something wrong with your config.`);
|
|
82
|
+
else
|
|
83
|
+
presets.add(i.name);
|
|
84
|
+
});
|
|
76
85
|
return result;
|
|
77
86
|
}
|
|
78
87
|
async function updateRoot(newRoot) {
|
package/dist/index.mjs
CHANGED
|
@@ -63,6 +63,15 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
|
|
|
63
63
|
tokens.clear();
|
|
64
64
|
await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
|
|
65
65
|
invalidate();
|
|
66
|
+
const presets = /* @__PURE__ */ new Set();
|
|
67
|
+
uno.config.presets.forEach((i) => {
|
|
68
|
+
if (!i.name)
|
|
69
|
+
return;
|
|
70
|
+
if (presets.has(i.name))
|
|
71
|
+
console.warn(`[unocss] duplication of preset ${i.name} found, there might be something wrong with your config.`);
|
|
72
|
+
else
|
|
73
|
+
presets.add(i.name);
|
|
74
|
+
});
|
|
66
75
|
return result;
|
|
67
76
|
}
|
|
68
77
|
async function updateRoot(newRoot) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.4",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@rollup/pluginutils": "^4.2.1",
|
|
46
|
-
"@unocss/config": "0.37.
|
|
47
|
-
"@unocss/core": "0.37.
|
|
48
|
-
"@unocss/inspector": "0.37.
|
|
49
|
-
"@unocss/scope": "0.37.
|
|
50
|
-
"@unocss/transformer-directives": "0.37.
|
|
46
|
+
"@unocss/config": "0.37.4",
|
|
47
|
+
"@unocss/core": "0.37.4",
|
|
48
|
+
"@unocss/inspector": "0.37.4",
|
|
49
|
+
"@unocss/scope": "0.37.4",
|
|
50
|
+
"@unocss/transformer-directives": "0.37.4",
|
|
51
51
|
"magic-string": "^0.26.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@unocss/shared-integration": "0.37.
|
|
54
|
+
"@unocss/shared-integration": "0.37.4",
|
|
55
55
|
"vite": "^2.9.9"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|