@unocss/vite 66.6.7 → 66.6.8

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UnocssPluginContext, UserConfig, UserConfigDefaults } from "@unocss/core";
2
- import * as vite from "vite";
2
+ import * as _$vite from "vite";
3
3
  import { Plugin } from "vite";
4
4
 
5
5
  //#region src/types.d.ts
@@ -73,7 +73,7 @@ declare function GlobalModeBuildPlugin(ctx: UnocssPluginContext<VitePluginConfig
73
73
  declare function GlobalModeDevPlugin(ctx: UnocssPluginContext): Plugin[];
74
74
  //#endregion
75
75
  //#region src/modes/global/index.d.ts
76
- declare function GlobalModePlugin(ctx: UnocssPluginContext): vite.Plugin<any>[];
76
+ declare function GlobalModePlugin(ctx: UnocssPluginContext): _$vite.Plugin<any>[];
77
77
  //#endregion
78
78
  //#region src/modes/per-module.d.ts
79
79
  declare function PerModuleModePlugin(ctx: UnocssPluginContext): Plugin[];
package/dist/index.mjs CHANGED
@@ -471,7 +471,7 @@ function GlobalModeBuildPlugin(ctx) {
471
471
  const result = await ("handler" in cssPlugin.transform ? cssPlugin.transform.handler : cssPlugin.transform).call(ctx, css, id);
472
472
  if (!result) return css;
473
473
  if (typeof result === "string") css = result;
474
- else if (result.code) css = result.code;
474
+ else if (result.code) css = result.code.toString();
475
475
  css = css.replace(/[\n\r]/g, "");
476
476
  return css;
477
477
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
3
  "type": "module",
4
- "version": "66.6.7",
4
+ "version": "66.6.8",
5
5
  "description": "The Vite plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -46,14 +46,14 @@
46
46
  "chokidar": "^5.0.0",
47
47
  "magic-string": "^0.30.21",
48
48
  "pathe": "^2.0.3",
49
- "tinyglobby": "^0.2.15",
49
+ "tinyglobby": "^0.2.16",
50
50
  "unplugin-utils": "^0.3.1",
51
- "@unocss/config": "66.6.7",
52
- "@unocss/core": "66.6.7",
53
- "@unocss/inspector": "66.6.7"
51
+ "@unocss/config": "66.6.8",
52
+ "@unocss/core": "66.6.8",
53
+ "@unocss/inspector": "66.6.8"
54
54
  },
55
55
  "devDependencies": {
56
- "vite": "^7.3.1"
56
+ "vite": "^8.0.7"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown --config-loader unrun",