@unocss/vite 0.9.2 → 0.9.3

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 CHANGED
@@ -465,6 +465,10 @@ function ConfigHMRPlugin({ uno, configFilepath: filepath, invalidate, tokens, mo
465
465
  tokens.clear();
466
466
  await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
467
467
  invalidate();
468
+ server.ws.send({
469
+ type: "custom",
470
+ event: "unocss:config-changed"
471
+ });
468
472
  });
469
473
  }
470
474
  };
package/dist/index.mjs CHANGED
@@ -431,6 +431,10 @@ function ConfigHMRPlugin({ uno, configFilepath: filepath, invalidate, tokens, mo
431
431
  tokens.clear();
432
432
  await Promise.all(modules.map((code, id) => uno.applyExtractors(code, id, tokens)));
433
433
  invalidate();
434
+ server.ws.send({
435
+ type: "custom",
436
+ event: "unocss:config-changed"
437
+ });
434
438
  });
435
439
  }
436
440
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@rollup/pluginutils": "^4.1.1",
37
- "@unocss/config": "0.9.2",
38
- "@unocss/core": "0.9.2",
39
- "@unocss/scope": "0.9.2",
40
- "@unocss/inspector": "0.9.2"
37
+ "@unocss/config": "0.9.3",
38
+ "@unocss/core": "0.9.3",
39
+ "@unocss/scope": "0.9.3",
40
+ "@unocss/inspector": "0.9.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "vite": "^2.6.13"