@unocss/vite 66.1.2 → 66.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -557,8 +557,11 @@ function GlobalModeBuildPlugin(ctx) {
557
557
  handler(code, { filename }) {
558
558
  tasks.push(extract(code, filename));
559
559
  },
560
- // Compatibility with Legacy Vite
560
+ // eslint-disable-next-line ts/ban-ts-comment
561
+ // @ts-ignore Compatibility with Legacy Vite
561
562
  enforce: "pre",
563
+ // eslint-disable-next-line ts/ban-ts-comment
564
+ // @ts-ignore Compatibility with Legacy Vite
562
565
  transform(code, { filename }) {
563
566
  tasks.push(extract(code, filename));
564
567
  }
@@ -787,8 +790,11 @@ function GlobalModeDevPlugin(ctx) {
787
790
  setWarnTimer();
788
791
  tasks.push(extract(code, filename));
789
792
  },
790
- // Compatibility with Legacy Vite
793
+ // eslint-disable-next-line ts/ban-ts-comment
794
+ // @ts-ignore Compatibility with Legacy Vite
791
795
  enforce: "pre",
796
+ // eslint-disable-next-line ts/ban-ts-comment
797
+ // @ts-ignore Compatibility with Legacy Vite
792
798
  transform(code, { filename }) {
793
799
  setWarnTimer();
794
800
  tasks.push(extract(code, filename));
@@ -1129,8 +1135,11 @@ function createTransformerPlugins(ctx) {
1129
1135
  transformIndexHtml: {
1130
1136
  order,
1131
1137
  handler: htmlHandler,
1132
- // Compatibility with Legacy Vite
1138
+ // eslint-disable-next-line ts/ban-ts-comment
1139
+ // @ts-ignore Compatibility with Legacy Vite
1133
1140
  enforce: order,
1141
+ // eslint-disable-next-line ts/ban-ts-comment
1142
+ // @ts-ignore Compatibility with Legacy Vite
1134
1143
  transform: htmlHandler
1135
1144
  }
1136
1145
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
3
  "type": "module",
4
- "version": "66.1.2",
4
+ "version": "66.1.3",
5
5
  "description": "The Vite plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -55,9 +55,9 @@
55
55
  "pathe": "^2.0.3",
56
56
  "tinyglobby": "^0.2.13",
57
57
  "unplugin-utils": "^0.2.4",
58
- "@unocss/config": "66.1.2",
59
- "@unocss/core": "66.1.2",
60
- "@unocss/inspector": "66.1.2"
58
+ "@unocss/core": "66.1.3",
59
+ "@unocss/config": "66.1.3",
60
+ "@unocss/inspector": "66.1.3"
61
61
  },
62
62
  "devDependencies": {
63
63
  "vite": "^6.2.7"