@unocss/vite 66.1.2 → 66.1.4

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 +13 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -480,6 +480,7 @@ function resolveId(id, importer) {
480
480
  const match = id.match(alias);
481
481
  if (match) {
482
482
  let virtual = match[1] ? `__uno_${match[1]}.css` : "__uno.css";
483
+ virtual += match[2] || "";
483
484
  if (importer)
484
485
  virtual = resolve$1(importer, "..", virtual);
485
486
  else
@@ -557,8 +558,11 @@ function GlobalModeBuildPlugin(ctx) {
557
558
  handler(code, { filename }) {
558
559
  tasks.push(extract(code, filename));
559
560
  },
560
- // Compatibility with Legacy Vite
561
+ // eslint-disable-next-line ts/ban-ts-comment
562
+ // @ts-ignore Compatibility with Legacy Vite
561
563
  enforce: "pre",
564
+ // eslint-disable-next-line ts/ban-ts-comment
565
+ // @ts-ignore Compatibility with Legacy Vite
562
566
  transform(code, { filename }) {
563
567
  tasks.push(extract(code, filename));
564
568
  }
@@ -787,8 +791,11 @@ function GlobalModeDevPlugin(ctx) {
787
791
  setWarnTimer();
788
792
  tasks.push(extract(code, filename));
789
793
  },
790
- // Compatibility with Legacy Vite
794
+ // eslint-disable-next-line ts/ban-ts-comment
795
+ // @ts-ignore Compatibility with Legacy Vite
791
796
  enforce: "pre",
797
+ // eslint-disable-next-line ts/ban-ts-comment
798
+ // @ts-ignore Compatibility with Legacy Vite
792
799
  transform(code, { filename }) {
793
800
  setWarnTimer();
794
801
  tasks.push(extract(code, filename));
@@ -1129,8 +1136,11 @@ function createTransformerPlugins(ctx) {
1129
1136
  transformIndexHtml: {
1130
1137
  order,
1131
1138
  handler: htmlHandler,
1132
- // Compatibility with Legacy Vite
1139
+ // eslint-disable-next-line ts/ban-ts-comment
1140
+ // @ts-ignore Compatibility with Legacy Vite
1133
1141
  enforce: order,
1142
+ // eslint-disable-next-line ts/ban-ts-comment
1143
+ // @ts-ignore Compatibility with Legacy Vite
1134
1144
  transform: htmlHandler
1135
1145
  }
1136
1146
  };
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.4",
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/config": "66.1.4",
59
+ "@unocss/core": "66.1.4",
60
+ "@unocss/inspector": "66.1.4"
61
61
  },
62
62
  "devDependencies": {
63
63
  "vite": "^6.2.7"