vue-jsx-vapor 2.4.0 → 2.4.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.
Files changed (72) hide show
  1. package/dist/api.d.cts +3 -3
  2. package/dist/api.d.ts +3 -3
  3. package/dist/astro.cjs +2 -3
  4. package/dist/astro.d.cts +1 -1
  5. package/dist/astro.d.ts +1 -1
  6. package/dist/astro.js +2 -3
  7. package/dist/esbuild.cjs +2 -3
  8. package/dist/esbuild.d.cts +3 -3
  9. package/dist/esbuild.d.ts +3 -3
  10. package/dist/esbuild.js +2 -3
  11. package/dist/index.cjs +10 -11
  12. package/dist/index.d.cts +3 -3
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +11 -12
  15. package/dist/nuxt.cjs +4 -5
  16. package/dist/nuxt.d.cts +3 -3
  17. package/dist/nuxt.d.ts +3 -3
  18. package/dist/nuxt.js +4 -5
  19. package/dist/{options-BRfDD5qB.d.cts → options-Clei53Zq.d.ts} +2 -1
  20. package/dist/{options-CeDGvYqS.d.ts → options-DV8VvkGu.d.cts} +2 -1
  21. package/dist/options.d.cts +1 -1
  22. package/dist/options.d.ts +1 -1
  23. package/dist/{raw-BY1njZIx.cjs → raw-UXyMc4Bx.cjs} +1 -1
  24. package/dist/{raw-DecHkpC5.js → raw-xT5hUlRx.js} +1 -1
  25. package/dist/raw.cjs +1 -1
  26. package/dist/raw.d.cts +1 -1
  27. package/dist/raw.d.ts +1 -1
  28. package/dist/raw.js +1 -1
  29. package/dist/rolldown.cjs +2 -3
  30. package/dist/rolldown.d.cts +3 -3
  31. package/dist/rolldown.d.ts +3 -3
  32. package/dist/rolldown.js +2 -3
  33. package/dist/rollup.cjs +2 -3
  34. package/dist/rollup.d.cts +3 -3
  35. package/dist/rollup.d.ts +1 -1
  36. package/dist/rollup.js +2 -3
  37. package/dist/rspack.cjs +2 -3
  38. package/dist/rspack.d.cts +1 -1
  39. package/dist/rspack.d.ts +1 -1
  40. package/dist/rspack.js +2 -3
  41. package/dist/unplugin-BzCjyz75.js +12 -0
  42. package/dist/{unplugin-JV7CydWf.cjs → unplugin-CrQwiFff.cjs} +2 -22
  43. package/dist/unplugin.cjs +2 -3
  44. package/dist/unplugin.d.cts +3 -3
  45. package/dist/unplugin.d.ts +3 -3
  46. package/dist/unplugin.js +2 -3
  47. package/dist/vite-BUgmDfUA.js +7 -0
  48. package/dist/{vite-CVR2C-Wy.cjs → vite-BWFaZdea.cjs} +1 -1
  49. package/dist/vite.cjs +3 -4
  50. package/dist/vite.d.cts +3 -3
  51. package/dist/vite.d.ts +3 -3
  52. package/dist/vite.js +3 -4
  53. package/dist/volar.d.cts +1 -1
  54. package/dist/volar.d.ts +1 -1
  55. package/dist/{webpack-mKQ7x4tg.js → webpack-BrJvWfwB.js} +1 -1
  56. package/dist/{webpack-DWlp7dxs.cjs → webpack-CkQ8I3Hu.cjs} +1 -1
  57. package/dist/webpack.cjs +3 -4
  58. package/dist/webpack.d.cts +3 -3
  59. package/dist/webpack.d.ts +1 -1
  60. package/dist/webpack.js +3 -4
  61. package/jsx-runtime/index.cjs +38 -0
  62. package/{dist/jsx-runtime.d.cts → jsx-runtime/index.d.cts} +3 -3
  63. package/{dist/jsx-runtime.d.ts → jsx-runtime/index.d.ts} +8 -8
  64. package/package.json +14 -13
  65. package/dist/jsx-runtime.cjs +0 -16
  66. package/dist/options-HYvLzmlg.js +0 -0
  67. package/dist/options.cjs +0 -1
  68. package/dist/options.js +0 -1
  69. package/dist/unplugin-DeYNxSzL.js +0 -32
  70. package/dist/vite-C2WptbyG.js +0 -7
  71. /package/dist/{options-CulFO0WS.cjs → options.d.cjs} +0 -0
  72. /package/{dist/jsx-runtime.js → jsx-runtime/index.js} +0 -0
package/dist/api.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as _babel_core19 from "@babel/core";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as _babel_core14 from "@babel/core";
3
3
 
4
4
  //#region src/core/index.d.ts
5
- declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core19.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core14.BabelFileResult | null;
6
6
 
7
7
  //#endregion
8
8
  export { Options, transformVueJsxVapor };
package/dist/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as _babel_core21 from "@babel/core";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as _babel_core14 from "@babel/core";
3
3
 
4
4
  //#region src/core/index.d.ts
5
- declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core21.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core14.BabelFileResult | null;
6
6
 
7
7
  //#endregion
8
8
  export { Options, transformVueJsxVapor };
package/dist/astro.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
6
5
 
7
6
  //#region src/astro.ts
8
7
  var astro_default = (options) => ({
package/dist/astro.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
5
4
 
6
5
  //#region src/astro.ts
7
6
  var astro_default = (options) => ({
package/dist/esbuild.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
6
5
 
7
6
  //#region src/esbuild.ts
8
7
  var esbuild_default = require_unplugin.unplugin_default.esbuild;
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as esbuild8 from "esbuild";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as esbuild1 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild8.Plugin;
5
+ declare const _default: (options?: Options | undefined) => esbuild1.Plugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/esbuild.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as esbuild1 from "esbuild";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as esbuild4 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild1.Plugin;
5
+ declare const _default: (options?: Options | undefined) => esbuild4.Plugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/esbuild.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
5
4
 
6
5
  //#region src/esbuild.ts
7
6
  var esbuild_default = unplugin_default.esbuild;
package/dist/index.cjs CHANGED
@@ -62,20 +62,20 @@ function normalizeNode(node, anchor) {
62
62
  } else return document.createTextNode(result);
63
63
  }
64
64
  }
65
- function resolveValue(current, value, anchor) {
66
- const node = normalizeNode(value, anchor);
65
+ function resolveValue(current, value, _anchor) {
66
+ const node = normalizeNode(value, _anchor);
67
67
  if (current) {
68
68
  if ((0, vue.isFragment)(current)) {
69
- const { anchor: anchor$1 } = current;
70
- if (anchor$1 && anchor$1.parentNode) {
71
- (0, vue.remove)(current.nodes, anchor$1.parentNode);
72
- (0, vue.insert)(node, anchor$1.parentNode, anchor$1);
73
- anchor$1.remove();
69
+ const { anchor } = current;
70
+ if (anchor && anchor.parentNode) {
71
+ (0, vue.remove)(current.nodes, anchor.parentNode);
72
+ (0, vue.insert)(node, anchor.parentNode, anchor);
73
+ !_anchor && anchor.parentNode.removeChild(anchor);
74
74
  }
75
75
  } else if (current instanceof Node) {
76
76
  if ((0, vue.isFragment)(node) && current.parentNode) {
77
77
  (0, vue.insert)(node, current.parentNode, current);
78
- current.remove();
78
+ current.parentNode.removeChild(current);
79
79
  } else if (node instanceof Node) {
80
80
  if (current.nodeType === 3 && node.nodeType === 3) {
81
81
  current.textContent = node.textContent;
@@ -88,19 +88,18 @@ function resolveValue(current, value, anchor) {
88
88
  }
89
89
  function resolveValues(values = [], _anchor) {
90
90
  const nodes = [];
91
+ const frag = createFragment(nodes, _anchor);
91
92
  const scopes = [];
92
93
  for (const [index, value] of values.entries()) {
93
94
  const anchor = index === values.length - 1 ? _anchor : void 0;
94
95
  if (typeof value === "function") (0, vue.renderEffect)(() => {
95
- (0, vue.pauseTracking)();
96
96
  if (scopes[index]) scopes[index].stop();
97
97
  scopes[index] = new vue.EffectScope();
98
98
  nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
99
- (0, vue.resetTracking)();
100
99
  });
101
100
  else nodes[index] = resolveValue(nodes[index], value, anchor);
102
101
  }
103
- return nodes;
102
+ return frag;
104
103
  }
105
104
  function setNodes(anchor, ...values) {
106
105
  const resolvedValues = resolveValues(values, anchor);
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Vue from "vue";
2
- import { Block, GenericComponentInstance, shallowRef as useRef } from "vue";
2
+ import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
3
3
 
4
4
  //#region src/core/runtime.d.ts
5
5
  declare function getCurrentInstance(): GenericComponentInstance | null;
@@ -33,8 +33,8 @@ declare function useProps(): {
33
33
  declare function useFullProps(): Vue.ShallowUnwrapRef<{
34
34
  [x: string]: Vue.Ref<unknown, unknown>;
35
35
  }>;
36
- declare function setNodes(anchor: Element, ...values: any[]): void;
37
- declare function createNodes(...values: any[]): Block[];
36
+ declare function setNodes(anchor: Node, ...values: any[]): void;
37
+ declare function createNodes(...values: any[]): VaporFragment;
38
38
 
39
39
  //#endregion
40
40
  export { createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Vue from "vue";
2
- import { Block, GenericComponentInstance, shallowRef as useRef } from "vue";
2
+ import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
3
3
 
4
4
  //#region src/core/runtime.d.ts
5
5
  declare function getCurrentInstance(): GenericComponentInstance | null;
@@ -33,8 +33,8 @@ declare function useProps(): {
33
33
  declare function useFullProps(): Vue.ShallowUnwrapRef<{
34
34
  [x: string]: Vue.Ref<unknown, unknown>;
35
35
  }>;
36
- declare function setNodes(anchor: Element, ...values: any[]): void;
37
- declare function createNodes(...values: any[]): Block[];
36
+ declare function setNodes(anchor: Node, ...values: any[]): void;
37
+ declare function createNodes(...values: any[]): VaporFragment;
38
38
 
39
39
  //#endregion
40
40
  export { createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Vue from "vue";
2
- import { EffectScope, VaporFragment, insert, isFragment, isVaporComponent, pauseTracking, proxyRefs, remove, renderEffect, resetTracking, shallowRef as useRef, toRefs, useAttrs } from "vue";
2
+ import { EffectScope, VaporFragment, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
3
3
 
4
4
  //#region src/core/runtime.ts
5
5
  function getCurrentInstance() {
@@ -62,20 +62,20 @@ function normalizeNode(node, anchor) {
62
62
  } else return document.createTextNode(result);
63
63
  }
64
64
  }
65
- function resolveValue(current, value, anchor) {
66
- const node = normalizeNode(value, anchor);
65
+ function resolveValue(current, value, _anchor) {
66
+ const node = normalizeNode(value, _anchor);
67
67
  if (current) {
68
68
  if (isFragment(current)) {
69
- const { anchor: anchor$1 } = current;
70
- if (anchor$1 && anchor$1.parentNode) {
71
- remove(current.nodes, anchor$1.parentNode);
72
- insert(node, anchor$1.parentNode, anchor$1);
73
- anchor$1.remove();
69
+ const { anchor } = current;
70
+ if (anchor && anchor.parentNode) {
71
+ remove(current.nodes, anchor.parentNode);
72
+ insert(node, anchor.parentNode, anchor);
73
+ !_anchor && anchor.parentNode.removeChild(anchor);
74
74
  }
75
75
  } else if (current instanceof Node) {
76
76
  if (isFragment(node) && current.parentNode) {
77
77
  insert(node, current.parentNode, current);
78
- current.remove();
78
+ current.parentNode.removeChild(current);
79
79
  } else if (node instanceof Node) {
80
80
  if (current.nodeType === 3 && node.nodeType === 3) {
81
81
  current.textContent = node.textContent;
@@ -88,19 +88,18 @@ function resolveValue(current, value, anchor) {
88
88
  }
89
89
  function resolveValues(values = [], _anchor) {
90
90
  const nodes = [];
91
+ const frag = createFragment(nodes, _anchor);
91
92
  const scopes = [];
92
93
  for (const [index, value] of values.entries()) {
93
94
  const anchor = index === values.length - 1 ? _anchor : void 0;
94
95
  if (typeof value === "function") renderEffect(() => {
95
- pauseTracking();
96
96
  if (scopes[index]) scopes[index].stop();
97
97
  scopes[index] = new EffectScope();
98
98
  nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
99
- resetTracking();
100
99
  });
101
100
  else nodes[index] = resolveValue(nodes[index], value, anchor);
102
101
  }
103
- return nodes;
102
+ return frag;
104
103
  }
105
104
  function setNodes(anchor, ...values) {
106
105
  const resolvedValues = resolveValues(values, anchor);
package/dist/nuxt.cjs CHANGED
@@ -1,11 +1,10 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./core-BEqRwfoK.cjs');
4
- require('./raw-BY1njZIx.cjs');
5
- require('./options-CulFO0WS.cjs');
6
- require('./unplugin-JV7CydWf.cjs');
7
- const require_vite = require('./vite-CVR2C-Wy.cjs');
8
- const require_webpack = require('./webpack-DWlp7dxs.cjs');
4
+ require('./raw-UXyMc4Bx.cjs');
5
+ require('./unplugin-CrQwiFff.cjs');
6
+ const require_vite = require('./vite-BWFaZdea.cjs');
7
+ const require_webpack = require('./webpack-CkQ8I3Hu.cjs');
9
8
  const __nuxt_kit = require_chunk.__toESM(require("@nuxt/kit"));
10
9
  require("@nuxt/schema");
11
10
 
package/dist/nuxt.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as _nuxt_schema6 from "@nuxt/schema";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as _nuxt_schema4 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
5
  interface ModuleOptions extends Options {}
6
- declare const _default: _nuxt_schema6.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const _default: _nuxt_schema4.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  //#endregion
9
9
  export { ModuleOptions, _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as _nuxt_schema16 from "@nuxt/schema";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as _nuxt_schema8 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
5
  interface ModuleOptions extends Options {}
6
- declare const _default: _nuxt_schema16.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const _default: _nuxt_schema8.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  //#endregion
9
9
  export { ModuleOptions, _default as default };
package/dist/nuxt.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import "./unplugin-DeYNxSzL.js";
5
- import { vite_default } from "./vite-C2WptbyG.js";
6
- import { webpack_default } from "./webpack-mKQ7x4tg.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import "./unplugin-BzCjyz75.js";
4
+ import { vite_default } from "./vite-BUgmDfUA.js";
5
+ import { webpack_default } from "./webpack-BrJvWfwB.js";
7
6
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
8
7
  import "@nuxt/schema";
9
8
 
@@ -1,9 +1,10 @@
1
+ import { FilterPattern } from "unplugin-utils";
1
2
  import { CompilerOptions } from "@vue-jsx-vapor/compiler";
2
3
  import { Options } from "@vue-jsx-vapor/macros";
3
- import { FilterPattern } from "unplugin-utils";
4
4
 
5
5
  //#region src/options.d.ts
6
6
  interface Options$1 {
7
+ // define your plugin options here
7
8
  include?: FilterPattern;
8
9
  exclude?: FilterPattern;
9
10
  interop?: boolean;
@@ -1,9 +1,10 @@
1
- import { FilterPattern } from "unplugin-utils";
2
1
  import { CompilerOptions } from "@vue-jsx-vapor/compiler";
3
2
  import { Options } from "@vue-jsx-vapor/macros";
3
+ import { FilterPattern } from "unplugin-utils";
4
4
 
5
5
  //#region src/options.d.ts
6
6
  interface Options$1 {
7
+ // define your plugin options here
7
8
  include?: FilterPattern;
8
9
  exclude?: FilterPattern;
9
10
  interop?: boolean;
@@ -1,2 +1,2 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
2
  export { Options };
package/dist/options.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
  export { Options };
@@ -112,7 +112,7 @@ function isDefineComponentCall(node, names) {
112
112
 
113
113
  //#endregion
114
114
  //#region src/core/runtime.ts?raw
115
- var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n pauseTracking,\n proxyRefs,\n remove,\n renderEffect,\n resetTracking,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, anchor) {\n const node = normalizeNode(value, anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor: anchor2 } = current;\n if (anchor2 && anchor2.parentNode) {\n remove(current.nodes, anchor2.parentNode);\n insert(node, anchor2.parentNode, anchor2);\n anchor2.remove();\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.remove();\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n pauseTracking();\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n resetTracking();\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return nodes;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
115
+ var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
116
116
 
117
117
  //#endregion
118
118
  //#region src/core/vue-jsx.ts
@@ -111,7 +111,7 @@ function isDefineComponentCall(node, names) {
111
111
 
112
112
  //#endregion
113
113
  //#region src/core/runtime.ts?raw
114
- var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n pauseTracking,\n proxyRefs,\n remove,\n renderEffect,\n resetTracking,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, anchor) {\n const node = normalizeNode(value, anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor: anchor2 } = current;\n if (anchor2 && anchor2.parentNode) {\n remove(current.nodes, anchor2.parentNode);\n insert(node, anchor2.parentNode, anchor2);\n anchor2.remove();\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.remove();\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n pauseTracking();\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n resetTracking();\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return nodes;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
114
+ var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
115
115
 
116
116
  //#endregion
117
117
  //#region src/core/vue-jsx.ts
package/dist/raw.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- const require_raw = require('./raw-BY1njZIx.cjs');
3
+ const require_raw = require('./raw-UXyMc4Bx.cjs');
4
4
 
5
5
  exports.default = require_raw.raw_default;
package/dist/raw.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
2
  import { UnpluginOptions } from "unplugin";
3
3
 
4
4
  //#region src/raw.d.ts
package/dist/raw.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
  import { UnpluginOptions } from "unplugin";
3
3
 
4
4
  //#region src/raw.d.ts
package/dist/raw.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import { raw_default } from "./raw-DecHkpC5.js";
2
+ import { raw_default } from "./raw-xT5hUlRx.js";
3
3
 
4
4
  export { raw_default as default };
package/dist/rolldown.cjs CHANGED
@@ -1,9 +1,8 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./core-BEqRwfoK.cjs');
4
- require('./raw-BY1njZIx.cjs');
5
- require('./options-CulFO0WS.cjs');
6
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
4
+ require('./raw-UXyMc4Bx.cjs');
5
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
7
6
  const unplugin = require_chunk.__toESM(require("unplugin"));
8
7
 
9
8
  //#region src/rolldown.ts
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as rollup15 from "rollup";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as rollup6 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup15.Plugin<any> | rollup15.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup6.Plugin<any> | rollup6.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as rollup3 from "rollup";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as rollup1 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup3.Plugin<any> | rollup3.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/rolldown.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unpluginFactory } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unpluginFactory } from "./unplugin-BzCjyz75.js";
5
4
  import { createRollupPlugin } from "unplugin";
6
5
 
7
6
  //#region src/rolldown.ts
package/dist/rollup.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
6
5
 
7
6
  //#region src/rollup.ts
8
7
  var rollup_default = require_unplugin.unplugin_default.rollup;
package/dist/rollup.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as rollup18 from "rollup";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as rollup3 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup18.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup3.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/rollup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
  import * as rollup6 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
5
4
 
6
5
  //#region src/rollup.ts
7
6
  var rollup_default = unplugin_default.rollup;
package/dist/rspack.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
6
5
 
7
6
  //#region src/rspack.ts
8
7
  var rspack_default = require_unplugin.unplugin_default.rspack;
package/dist/rspack.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
5
4
 
6
5
  //#region src/rspack.ts
7
6
  var rspack_default = unplugin_default.rspack;
@@ -0,0 +1,12 @@
1
+ import { raw_default } from "./raw-xT5hUlRx.js";
2
+ import { createUnplugin } from "unplugin";
3
+
4
+ //#region src/unplugin.ts
5
+ const unpluginFactory = (options = {}) => {
6
+ return raw_default(options);
7
+ };
8
+ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
9
+ var unplugin_default = unplugin;
10
+
11
+ //#endregion
12
+ export { unplugin, unpluginFactory, unplugin_default };
@@ -1,30 +1,10 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_raw = require('./raw-BY1njZIx.cjs');
2
+ const require_raw = require('./raw-UXyMc4Bx.cjs');
3
3
  const unplugin = require_chunk.__toESM(require("unplugin"));
4
- const vite = require_chunk.__toESM(require("vite"));
5
4
 
6
5
  //#region src/unplugin.ts
7
6
  const unpluginFactory = (options = {}) => {
8
- return [...require_raw.raw_default(options), options.interop ? { name: "interop" } : {
9
- name: "unplugin-esbuild",
10
- transformInclude: (0, vite.createFilter)(options?.include || /\.[jt]sx$/, options?.exclude),
11
- transform(code, id) {
12
- return (0, vite.transformWithEsbuild)(code, id, {
13
- target: "esnext",
14
- charset: "utf8",
15
- minify: false,
16
- minifyIdentifiers: false,
17
- minifySyntax: false,
18
- minifyWhitespace: false,
19
- treeShaking: false,
20
- keepNames: false,
21
- supported: {
22
- "dynamic-import": true,
23
- "import-meta": true
24
- }
25
- });
26
- }
27
- }];
7
+ return require_raw.raw_default(options);
28
8
  };
29
9
  const unplugin$1 = /* @__PURE__ */ (0, unplugin.createUnplugin)(unpluginFactory);
30
10
  var unplugin_default = unplugin$1;
package/dist/unplugin.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
6
5
 
7
6
  exports.default = require_unplugin.unplugin_default;
8
7
  exports.unplugin = require_unplugin.unplugin;
@@ -1,10 +1,10 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as unplugin11 from "unplugin";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as unplugin13 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
5
5
  //#region src/unplugin.d.ts
6
6
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
7
- declare const unplugin: unplugin11.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin13.UnpluginInstance<Options | undefined, true>;
8
8
 
9
9
  //#endregion
10
10
  export { Options, unplugin as default, unplugin, unpluginFactory };
@@ -1,10 +1,10 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as unplugin18 from "unplugin";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as unplugin9 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
5
5
  //#region src/unplugin.d.ts
6
6
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
7
- declare const unplugin: unplugin18.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin9.UnpluginInstance<Options | undefined, true>;
8
8
 
9
9
  //#endregion
10
10
  export { Options, unplugin as default, unplugin, unpluginFactory };
package/dist/unplugin.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-DeYNxSzL.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-BzCjyz75.js";
5
4
 
6
5
  export { unplugin_default as default, unplugin, unpluginFactory };
@@ -0,0 +1,7 @@
1
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
2
+
3
+ //#region src/vite.ts
4
+ var vite_default = unplugin_default.vite;
5
+
6
+ //#endregion
7
+ export { vite_default };
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
1
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
2
2
 
3
3
  //#region src/vite.ts
4
4
  var vite_default = require_unplugin.unplugin_default.vite;
package/dist/vite.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- require('./unplugin-JV7CydWf.cjs');
6
- const require_vite = require('./vite-CVR2C-Wy.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ require('./unplugin-CrQwiFff.cjs');
5
+ const require_vite = require('./vite-BWFaZdea.cjs');
7
6
 
8
7
  exports.default = require_vite.vite_default;
package/dist/vite.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as vite10 from "vite";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as vite9 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite10.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite9.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/vite.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-CeDGvYqS.js";
2
- import * as vite15 from "vite";
1
+ import { Options } from "./options-Clei53Zq.js";
2
+ import * as vite11 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite15.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite11.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/vite.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import "./unplugin-DeYNxSzL.js";
5
- import { vite_default } from "./vite-C2WptbyG.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import "./unplugin-BzCjyz75.js";
4
+ import { vite_default } from "./vite-BUgmDfUA.js";
6
5
 
7
6
  export { vite_default as default };
package/dist/volar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
2
  import { PluginReturn } from "ts-macro";
3
3
 
4
4
  //#region src/volar.d.ts
package/dist/volar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
  import { PluginReturn } from "ts-macro";
3
3
 
4
4
  //#region src/volar.d.ts
@@ -1,4 +1,4 @@
1
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
1
+ import { unplugin_default } from "./unplugin-BzCjyz75.js";
2
2
 
3
3
  //#region src/webpack.ts
4
4
  var webpack_default = unplugin_default.webpack;
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('./unplugin-JV7CydWf.cjs');
1
+ const require_unplugin = require('./unplugin-CrQwiFff.cjs');
2
2
 
3
3
  //#region src/webpack.ts
4
4
  var webpack_default = require_unplugin.unplugin_default.webpack;
package/dist/webpack.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-BY1njZIx.cjs');
4
- require('./options-CulFO0WS.cjs');
5
- require('./unplugin-JV7CydWf.cjs');
6
- const require_webpack = require('./webpack-DWlp7dxs.cjs');
3
+ require('./raw-UXyMc4Bx.cjs');
4
+ require('./unplugin-CrQwiFff.cjs');
5
+ const require_webpack = require('./webpack-CkQ8I3Hu.cjs');
7
6
 
8
7
  exports.default = require_webpack.webpack_default;
@@ -1,8 +1,8 @@
1
- import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as webpack13 from "webpack";
1
+ import { Options } from "./options-DV8VvkGu.cjs";
2
+ import * as webpack12 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack13.WebpackPluginInstance;
5
+ declare const _default: (options?: Options | undefined) => webpack12.WebpackPluginInstance;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/webpack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CeDGvYqS.js";
1
+ import { Options } from "./options-Clei53Zq.js";
2
2
  import * as webpack13 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
package/dist/webpack.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-DecHkpC5.js";
3
- import "./options-HYvLzmlg.js";
4
- import "./unplugin-DeYNxSzL.js";
5
- import { webpack_default } from "./webpack-mKQ7x4tg.js";
2
+ import "./raw-xT5hUlRx.js";
3
+ import "./unplugin-BzCjyz75.js";
4
+ import { webpack_default } from "./webpack-BrJvWfwB.js";
6
5
 
7
6
  export { webpack_default as default };
@@ -0,0 +1,38 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+ const vue = __toESM(require("vue"));
25
+
26
+ //#region src/jsx-runtime.ts
27
+ function jsx(type, props, key) {
28
+ const { children } = props;
29
+ delete props.children;
30
+ if (arguments.length > 2) props.key = key;
31
+ return (0, vue.h)(type, props, children);
32
+ }
33
+
34
+ //#endregion
35
+ exports.Fragment = vue.Fragment;
36
+ exports.jsx = jsx;
37
+ exports.jsxDEV = jsx;
38
+ exports.jsxs = jsx;
@@ -1,4 +1,4 @@
1
- import * as vue20 from "vue";
1
+ import * as vue5 from "vue";
2
2
  import * as vue0 from "vue";
3
3
  import { Fragment, h } from "vue";
4
4
  import * as CSS from "csstype";
@@ -1194,11 +1194,11 @@ interface Events<T = Element> {
1194
1194
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1195
1195
  type ReservedProps$1 = {
1196
1196
  key?: PropertyKey;
1197
- ref?: vue20.VNodeRef;
1197
+ ref?: vue5.VNodeRef;
1198
1198
  ref_for?: boolean;
1199
1199
  ref_key?: string;
1200
1200
  };
1201
- type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue20.HTMLAttributes };
1201
+ type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue5.HTMLAttributes };
1202
1202
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1203
1203
  nativeEvent: E;
1204
1204
  currentTarget: C;
@@ -1,5 +1,5 @@
1
- import * as vue19 from "vue";
2
- import * as vue7 from "vue";
1
+ import * as vue5 from "vue";
2
+ import * as vue0 from "vue";
3
3
  import { Fragment, h } from "vue";
4
4
  import * as CSS from "csstype";
5
5
 
@@ -1194,11 +1194,11 @@ interface Events<T = Element> {
1194
1194
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1195
1195
  type ReservedProps$1 = {
1196
1196
  key?: PropertyKey;
1197
- ref?: vue19.VNodeRef;
1197
+ ref?: vue5.VNodeRef;
1198
1198
  ref_for?: boolean;
1199
1199
  ref_key?: string;
1200
1200
  };
1201
- type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue19.HTMLAttributes };
1201
+ type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue5.HTMLAttributes };
1202
1202
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1203
1203
  nativeEvent: E;
1204
1204
  currentTarget: C;
@@ -1331,10 +1331,10 @@ type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1331
1331
  //#endregion
1332
1332
  //#region src/jsx-runtime.d.ts
1333
1333
  declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
1334
- type VNode = vue7.VNode;
1335
- type ReservedProps = vue7.ReservedProps;
1336
- type AllowedComponentProps = vue7.AllowedComponentProps;
1337
- type ComponentCustomProps = vue7.ComponentCustomProps;
1334
+ type VNode = vue0.VNode;
1335
+ type ReservedProps = vue0.ReservedProps;
1336
+ type AllowedComponentProps = vue0.AllowedComponentProps;
1337
+ type ComponentCustomProps = vue0.ComponentCustomProps;
1338
1338
  declare global {
1339
1339
  namespace JSX {
1340
1340
  interface Element extends VNode {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -23,7 +23,8 @@
23
23
  "url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
24
24
  },
25
25
  "files": [
26
- "dist"
26
+ "dist",
27
+ "jsx-runtime"
27
28
  ],
28
29
  "main": "dist/index.cjs",
29
30
  "module": "dist/index.js",
@@ -102,16 +103,16 @@
102
103
  "import": "./dist/unplugin.js"
103
104
  },
104
105
  "./jsx-runtime": {
105
- "types": "./dist/jsx-runtime.d.ts",
106
+ "types": "./jsx-runtime/index.d.ts",
106
107
  "jsx-vapor-dev": "./src/jsx-runtime.ts",
107
- "require": "./dist/jsx-runtime.cjs",
108
- "default": "./dist/jsx-runtime.js"
108
+ "require": "./jsx-runtime/index.cjs",
109
+ "default": "./jsx-runtime/index.js"
109
110
  },
110
111
  "./jsx-dev-runtime": {
111
- "types": "./dist/jsx-runtime.d.ts",
112
+ "types": "./jsx-runtime/index.d.ts",
112
113
  "jsx-vapor-dev": "./src/jsx-runtime.ts",
113
- "require": "./dist/jsx-runtime.cjs",
114
- "default": "./dist/jsx-runtime.js"
114
+ "require": "./jsx-runtime/index.cjs",
115
+ "default": "./jsx-runtime/index.js"
115
116
  },
116
117
  "./volar": {
117
118
  "types": "./dist/volar.d.ts",
@@ -153,7 +154,6 @@
153
154
  "dependencies": {
154
155
  "@babel/core": "^7.26.8",
155
156
  "@babel/plugin-transform-typescript": "^7.26.8",
156
- "@types/hash-sum": "^1.0.2",
157
157
  "@vue-macros/jsx-directive": "^3.0.0-beta.12",
158
158
  "@vue-macros/volar": "^3.0.0-beta.12",
159
159
  "@vue/babel-plugin-jsx": "^1.4.0",
@@ -162,16 +162,17 @@
162
162
  "ts-macro": "^0.1.29",
163
163
  "unplugin": "^2.2.2",
164
164
  "unplugin-utils": "^0.2.4",
165
- "@vue-jsx-vapor/babel": "2.4.0",
166
- "@vue-jsx-vapor/compiler": "2.4.0",
167
- "@vue-jsx-vapor/macros": "2.4.0"
165
+ "@vue-jsx-vapor/compiler": "2.4.2",
166
+ "@vue-jsx-vapor/macros": "2.4.2",
167
+ "@vue-jsx-vapor/babel": "2.4.2"
168
168
  },
169
169
  "devDependencies": {
170
170
  "@nuxt/kit": "^3.16.0",
171
171
  "@nuxt/schema": "^3.16.0",
172
172
  "@types/babel__core": "^7.20.5",
173
+ "@types/hash-sum": "^1.0.2",
173
174
  "csstype": "^3.1.3",
174
- "vue": "https://pkg.pr.new/vue@1c02a3e"
175
+ "vue": "https://pkg.pr.new/vue@46e707d"
175
176
  },
176
177
  "scripts": {
177
178
  "build": "tsdown",
@@ -1,16 +0,0 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const vue = require_chunk.__toESM(require("vue"));
3
-
4
- //#region src/jsx-runtime.ts
5
- function jsx(type, props, key) {
6
- const { children } = props;
7
- delete props.children;
8
- if (arguments.length > 2) props.key = key;
9
- return (0, vue.h)(type, props, children);
10
- }
11
-
12
- //#endregion
13
- exports.Fragment = vue.Fragment;
14
- exports.jsx = jsx;
15
- exports.jsxDEV = jsx;
16
- exports.jsxs = jsx;
File without changes
package/dist/options.cjs DELETED
@@ -1 +0,0 @@
1
- require('./options-CulFO0WS.cjs');
package/dist/options.js DELETED
@@ -1 +0,0 @@
1
- import "./options-HYvLzmlg.js";
@@ -1,32 +0,0 @@
1
- import { raw_default } from "./raw-DecHkpC5.js";
2
- import { createUnplugin } from "unplugin";
3
- import { createFilter, transformWithEsbuild } from "vite";
4
-
5
- //#region src/unplugin.ts
6
- const unpluginFactory = (options = {}) => {
7
- return [...raw_default(options), options.interop ? { name: "interop" } : {
8
- name: "unplugin-esbuild",
9
- transformInclude: createFilter(options?.include || /\.[jt]sx$/, options?.exclude),
10
- transform(code, id) {
11
- return transformWithEsbuild(code, id, {
12
- target: "esnext",
13
- charset: "utf8",
14
- minify: false,
15
- minifyIdentifiers: false,
16
- minifySyntax: false,
17
- minifyWhitespace: false,
18
- treeShaking: false,
19
- keepNames: false,
20
- supported: {
21
- "dynamic-import": true,
22
- "import-meta": true
23
- }
24
- });
25
- }
26
- }];
27
- };
28
- const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
29
- var unplugin_default = unplugin;
30
-
31
- //#endregion
32
- export { unplugin, unpluginFactory, unplugin_default };
@@ -1,7 +0,0 @@
1
- import { unplugin_default } from "./unplugin-DeYNxSzL.js";
2
-
3
- //#region src/vite.ts
4
- var vite_default = unplugin_default.vite;
5
-
6
- //#endregion
7
- export { vite_default };
File without changes
File without changes