@unocss/vite 0.27.2 → 0.27.5
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -245,7 +245,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, modules, filter })
|
|
|
245
245
|
];
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
const WARN_TIMEOUT =
|
|
248
|
+
const WARN_TIMEOUT = 1e4;
|
|
249
249
|
const WS_EVENT_PREFIX = "custom:unocss:";
|
|
250
250
|
function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
251
251
|
const servers = [];
|
|
@@ -317,6 +317,9 @@ function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
|
317
317
|
servers.push(_server);
|
|
318
318
|
setWarnTimer();
|
|
319
319
|
_server.ws.on("connection", (ws) => {
|
|
320
|
+
ws.on("open", () => {
|
|
321
|
+
invalidate();
|
|
322
|
+
});
|
|
320
323
|
ws.on("message", (msg) => {
|
|
321
324
|
const message = String(msg);
|
|
322
325
|
if (!message.startsWith(WS_EVENT_PREFIX))
|
package/dist/index.mjs
CHANGED
|
@@ -236,7 +236,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, modules, filter })
|
|
|
236
236
|
];
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
const WARN_TIMEOUT =
|
|
239
|
+
const WARN_TIMEOUT = 1e4;
|
|
240
240
|
const WS_EVENT_PREFIX = "custom:unocss:";
|
|
241
241
|
function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
242
242
|
const servers = [];
|
|
@@ -308,6 +308,9 @@ function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter }) {
|
|
|
308
308
|
servers.push(_server);
|
|
309
309
|
setWarnTimer();
|
|
310
310
|
_server.ws.on("connection", (ws) => {
|
|
311
|
+
ws.on("open", () => {
|
|
312
|
+
invalidate();
|
|
313
|
+
});
|
|
311
314
|
ws.on("message", (msg) => {
|
|
312
315
|
const message = String(msg);
|
|
313
316
|
if (!message.startsWith(WS_EVENT_PREFIX))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.5",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@rollup/pluginutils": "^4.1.2",
|
|
38
|
-
"@unocss/config": "0.27.
|
|
39
|
-
"@unocss/core": "0.27.
|
|
40
|
-
"@unocss/inspector": "0.27.
|
|
41
|
-
"@unocss/scope": "0.27.
|
|
42
|
-
"@unocss/transformer-directives": "0.27.
|
|
38
|
+
"@unocss/config": "0.27.5",
|
|
39
|
+
"@unocss/core": "0.27.5",
|
|
40
|
+
"@unocss/inspector": "0.27.5",
|
|
41
|
+
"@unocss/scope": "0.27.5",
|
|
42
|
+
"@unocss/transformer-directives": "0.27.5",
|
|
43
43
|
"magic-string": "^0.26.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|