@unocss/vite 0.58.4 → 0.58.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 CHANGED
@@ -560,7 +560,7 @@ function GlobalModeBuildPlugin(ctx) {
560
560
  if (!vfsLayers.size) {
561
561
  if (replaced)
562
562
  return;
563
- const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
563
+ const msg = "[unocss] Entry module not found. Did you add `import 'uno.css'` in your main entry?";
564
564
  this.warn(msg);
565
565
  return;
566
566
  }
@@ -675,7 +675,7 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
675
675
  if (process__default.env.TEST || process__default.env.NODE_ENV === "test")
676
676
  return;
677
677
  if (!resolved) {
678
- const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
678
+ const msg = "[unocss] Entry module not found. Did you add `import 'uno.css'` in your main entry?";
679
679
  console.warn(msg);
680
680
  servers.forEach(({ ws }) => ws.send({
681
681
  type: "error",
package/dist/index.d.cts CHANGED
@@ -70,8 +70,8 @@ declare function VueScopedPlugin({ uno, ready }: UnocssPluginContext): Plugin;
70
70
 
71
71
  declare function defineConfig<Theme extends object>(config: VitePluginConfig<Theme>): VitePluginConfig<Theme>;
72
72
  interface UnocssVitePluginAPI {
73
- getContext(): UnocssPluginContext<VitePluginConfig>;
74
- getMode(): VitePluginConfig['mode'];
73
+ getContext: () => UnocssPluginContext<VitePluginConfig>;
74
+ getMode: () => VitePluginConfig['mode'];
75
75
  }
76
76
  declare function UnocssPlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string, defaults?: UserConfigDefaults): Plugin[];
77
77
 
package/dist/index.d.mts CHANGED
@@ -70,8 +70,8 @@ declare function VueScopedPlugin({ uno, ready }: UnocssPluginContext): Plugin;
70
70
 
71
71
  declare function defineConfig<Theme extends object>(config: VitePluginConfig<Theme>): VitePluginConfig<Theme>;
72
72
  interface UnocssVitePluginAPI {
73
- getContext(): UnocssPluginContext<VitePluginConfig>;
74
- getMode(): VitePluginConfig['mode'];
73
+ getContext: () => UnocssPluginContext<VitePluginConfig>;
74
+ getMode: () => VitePluginConfig['mode'];
75
75
  }
76
76
  declare function UnocssPlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string, defaults?: UserConfigDefaults): Plugin[];
77
77
 
package/dist/index.d.ts CHANGED
@@ -70,8 +70,8 @@ declare function VueScopedPlugin({ uno, ready }: UnocssPluginContext): Plugin;
70
70
 
71
71
  declare function defineConfig<Theme extends object>(config: VitePluginConfig<Theme>): VitePluginConfig<Theme>;
72
72
  interface UnocssVitePluginAPI {
73
- getContext(): UnocssPluginContext<VitePluginConfig>;
74
- getMode(): VitePluginConfig['mode'];
73
+ getContext: () => UnocssPluginContext<VitePluginConfig>;
74
+ getMode: () => VitePluginConfig['mode'];
75
75
  }
76
76
  declare function UnocssPlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string, defaults?: UserConfigDefaults): Plugin[];
77
77
 
package/dist/index.mjs CHANGED
@@ -545,7 +545,7 @@ function GlobalModeBuildPlugin(ctx) {
545
545
  if (!vfsLayers.size) {
546
546
  if (replaced)
547
547
  return;
548
- const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
548
+ const msg = "[unocss] Entry module not found. Did you add `import 'uno.css'` in your main entry?";
549
549
  this.warn(msg);
550
550
  return;
551
551
  }
@@ -660,7 +660,7 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
660
660
  if (process$1.env.TEST || process$1.env.NODE_ENV === "test")
661
661
  return;
662
662
  if (!resolved) {
663
- const msg = "[unocss] entry module not found, have you add `import 'uno.css'` in your main entry?";
663
+ const msg = "[unocss] Entry module not found. Did you add `import 'uno.css'` in your main entry?";
664
664
  console.warn(msg);
665
665
  servers.forEach(({ ws }) => ws.send({
666
666
  type: "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.58.4",
3
+ "version": "0.58.5",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -46,16 +46,16 @@
46
46
  "@rollup/pluginutils": "^5.1.0",
47
47
  "chokidar": "^3.5.3",
48
48
  "fast-glob": "^3.3.2",
49
- "magic-string": "^0.30.5",
50
- "@unocss/config": "0.58.4",
51
- "@unocss/core": "0.58.4",
52
- "@unocss/inspector": "0.58.4",
53
- "@unocss/scope": "0.58.4",
54
- "@unocss/transformer-directives": "0.58.4"
49
+ "magic-string": "^0.30.6",
50
+ "@unocss/config": "0.58.5",
51
+ "@unocss/core": "0.58.5",
52
+ "@unocss/inspector": "0.58.5",
53
+ "@unocss/scope": "0.58.5",
54
+ "@unocss/transformer-directives": "0.58.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "vite": "^5.0.12",
58
- "@unocss/shared-integration": "0.58.4"
58
+ "@unocss/shared-integration": "0.58.5"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "unbuild",