@unocss/vite 0.57.0 → 0.57.2

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
@@ -420,8 +420,8 @@ function GlobalModeBuildPlugin(ctx) {
420
420
  return null;
421
421
  },
422
422
  transformIndexHtml: {
423
- enforce: "pre",
424
- transform(code, { filename }) {
423
+ order: "pre",
424
+ handler(code, { filename }) {
425
425
  tasks.push(extract(code, filename));
426
426
  }
427
427
  },
@@ -704,8 +704,8 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
704
704
  return null;
705
705
  },
706
706
  transformIndexHtml: {
707
- enforce: "pre",
708
- transform(code, { filename }) {
707
+ order: "pre",
708
+ handler(code, { filename }) {
709
709
  setWarnTimer();
710
710
  tasks.push(extract(code, filename));
711
711
  }
@@ -1049,8 +1049,8 @@ function createTransformerPlugins(ctx) {
1049
1049
  return applyTransformers(ctx, code, id, enforce);
1050
1050
  },
1051
1051
  transformIndexHtml: {
1052
- enforce: enforce === "default" ? void 0 : enforce,
1053
- transform(code) {
1052
+ order: enforce === "default" ? void 0 : enforce,
1053
+ handler(code) {
1054
1054
  return applyTransformers(ctx, code, "index.html", enforce).then((t) => t?.code);
1055
1055
  }
1056
1056
  }
package/dist/index.mjs CHANGED
@@ -405,8 +405,8 @@ function GlobalModeBuildPlugin(ctx) {
405
405
  return null;
406
406
  },
407
407
  transformIndexHtml: {
408
- enforce: "pre",
409
- transform(code, { filename }) {
408
+ order: "pre",
409
+ handler(code, { filename }) {
410
410
  tasks.push(extract(code, filename));
411
411
  }
412
412
  },
@@ -689,8 +689,8 @@ function GlobalModeDevPlugin({ uno, tokens, tasks, flushTasks, affectedModules,
689
689
  return null;
690
690
  },
691
691
  transformIndexHtml: {
692
- enforce: "pre",
693
- transform(code, { filename }) {
692
+ order: "pre",
693
+ handler(code, { filename }) {
694
694
  setWarnTimer();
695
695
  tasks.push(extract(code, filename));
696
696
  }
@@ -1034,8 +1034,8 @@ function createTransformerPlugins(ctx) {
1034
1034
  return applyTransformers(ctx, code, id, enforce);
1035
1035
  },
1036
1036
  transformIndexHtml: {
1037
- enforce: enforce === "default" ? void 0 : enforce,
1038
- transform(code) {
1037
+ order: enforce === "default" ? void 0 : enforce,
1038
+ handler(code) {
1039
1039
  return applyTransformers(ctx, code, "index.html", enforce).then((t) => t?.code);
1040
1040
  }
1041
1041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.57.0",
3
+ "version": "0.57.2",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -47,15 +47,15 @@
47
47
  "chokidar": "^3.5.3",
48
48
  "fast-glob": "^3.3.1",
49
49
  "magic-string": "^0.30.5",
50
- "@unocss/config": "0.57.0",
51
- "@unocss/core": "0.57.0",
52
- "@unocss/inspector": "0.57.0",
53
- "@unocss/scope": "0.57.0",
54
- "@unocss/transformer-directives": "0.57.0"
50
+ "@unocss/config": "0.57.2",
51
+ "@unocss/core": "0.57.2",
52
+ "@unocss/inspector": "0.57.2",
53
+ "@unocss/scope": "0.57.2",
54
+ "@unocss/transformer-directives": "0.57.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "vite": "^4.5.0",
58
- "@unocss/shared-integration": "0.57.0"
58
+ "@unocss/shared-integration": "0.57.2"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "unbuild",