@unocss/vite 0.25.0 → 0.25.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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -290,6 +290,8 @@ function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
|
290
290
|
function setWarnTimer() {
|
|
291
291
|
if (!resolved && !resolvedWarnTimer) {
|
|
292
292
|
resolvedWarnTimer = setTimeout(() => {
|
|
293
|
+
if (process.env.TEST || process.env.NODE_ENV === "test")
|
|
294
|
+
return;
|
|
293
295
|
if (!resolved) {
|
|
294
296
|
const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
|
|
295
297
|
console.warn(msg);
|
package/dist/index.mjs
CHANGED
|
@@ -282,6 +282,8 @@ function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
|
282
282
|
function setWarnTimer() {
|
|
283
283
|
if (!resolved && !resolvedWarnTimer) {
|
|
284
284
|
resolvedWarnTimer = setTimeout(() => {
|
|
285
|
+
if (process.env.TEST || process.env.NODE_ENV === "test")
|
|
286
|
+
return;
|
|
285
287
|
if (!resolved) {
|
|
286
288
|
const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
|
|
287
289
|
console.warn(msg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@rollup/pluginutils": "^4.1.2",
|
|
38
|
-
"@unocss/config": "0.25.
|
|
39
|
-
"@unocss/core": "0.25.
|
|
40
|
-
"@unocss/inspector": "0.25.
|
|
41
|
-
"@unocss/scope": "0.25.
|
|
38
|
+
"@unocss/config": "0.25.1",
|
|
39
|
+
"@unocss/core": "0.25.1",
|
|
40
|
+
"@unocss/inspector": "0.25.1",
|
|
41
|
+
"@unocss/scope": "0.25.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"vite": "^2.7.13"
|