vue-jsx-vapor 2.1.8 → 2.3.0

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/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVT3G3M3Gcjs = require('./chunk-VT3G3M3G.cjs');
3
+ var _chunkGY6DSRCVcjs = require('./chunk-GY6DSRCV.cjs');
4
4
 
5
5
 
6
- exports.transformVueJsxVapor = _chunkVT3G3M3Gcjs.transformVueJsxVapor;
6
+ exports.transformVueJsxVapor = _chunkGY6DSRCVcjs.transformVueJsxVapor;
package/dist/api.d.cts CHANGED
@@ -4,6 +4,6 @@ import '@vue-jsx-vapor/compiler';
4
4
  import '@vue-jsx-vapor/macros';
5
5
  import 'unplugin-utils';
6
6
 
7
- declare function transformVueJsxVapor(code: string, id: string, options?: Options): _babel_core.BabelFileResult | null;
7
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core.BabelFileResult | null;
8
8
 
9
9
  export { Options, transformVueJsxVapor };
package/dist/api.d.ts CHANGED
@@ -4,6 +4,6 @@ import '@vue-jsx-vapor/compiler';
4
4
  import '@vue-jsx-vapor/macros';
5
5
  import 'unplugin-utils';
6
6
 
7
- declare function transformVueJsxVapor(code: string, id: string, options?: Options): _babel_core.BabelFileResult | null;
7
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core.BabelFileResult | null;
8
8
 
9
9
  export { Options, transformVueJsxVapor };
package/dist/api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  transformVueJsxVapor
3
- } from "./chunk-XO54BK2I.js";
3
+ } from "./chunk-SAJ6WS2A.js";
4
4
  export {
5
5
  transformVueJsxVapor
6
6
  };
package/dist/astro.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-SM4PMROG.cjs');
6
- require('./chunk-VT3G3M3G.cjs');
5
+ require('./chunk-VSS2IZIS.cjs');
6
+ require('./chunk-GY6DSRCV.cjs');
7
7
 
8
8
  // src/astro.ts
9
9
  var astro_default = (options) => ({
@@ -11,7 +11,7 @@ var astro_default = (options) => ({
11
11
  hooks: {
12
12
  "astro:config:setup": (astro) => {
13
13
  astro.config.vite.plugins ||= [];
14
- astro.config.vite.plugins.push(_chunkMVHM4ZACcjs.unplugin_default.vite(options));
14
+ astro.config.vite.plugins.push(_chunkF7CI4ATHcjs.unplugin_default.vite(options));
15
15
  }
16
16
  }
17
17
  });
package/dist/astro.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-ELIW3YO2.js";
6
- import "./chunk-XO54BK2I.js";
5
+ import "./chunk-T3F6TYMY.js";
6
+ import "./chunk-SAJ6WS2A.js";
7
7
 
8
8
  // src/astro.ts
9
9
  var astro_default = (options) => ({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  var webpack_default = unplugin_default.webpack;
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkSM4PMROGcjs = require('./chunk-SM4PMROG.cjs');
3
+ var _chunkVSS2IZIScjs = require('./chunk-VSS2IZIS.cjs');
4
4
 
5
5
  // src/unplugin.ts
6
6
  var _unplugin = require('unplugin');
7
7
  var _vite = require('vite');
8
8
  var unpluginFactory = (options = {}) => {
9
9
  return [
10
- ..._chunkSM4PMROGcjs.raw_default.call(void 0, options),
10
+ ..._chunkVSS2IZIScjs.raw_default.call(void 0, options),
11
11
  options.interop ? { name: "interop" } : {
12
12
  name: "unplugin-esbuild",
13
13
  transformInclude: _vite.createFilter.call(void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raw_default
3
- } from "./chunk-ELIW3YO2.js";
3
+ } from "./chunk-T3F6TYMY.js";
4
4
 
5
5
  // src/unplugin.ts
6
6
  import { createUnplugin } from "unplugin";
@@ -2,14 +2,14 @@
2
2
  var _core = require('@babel/core');
3
3
  var _plugintransformtypescript = require('@babel/plugin-transform-typescript'); var _plugintransformtypescript2 = _interopRequireDefault(_plugintransformtypescript);
4
4
  var _babel = require('@vue-jsx-vapor/babel'); var _babel2 = _interopRequireDefault(_babel);
5
- function transformVueJsxVapor(code, id, options) {
5
+ function transformVueJsxVapor(code, id, options, needSourceMap = false) {
6
6
  return _core.transformSync.call(void 0, code, {
7
7
  plugins: [
8
8
  [_babel2.default, { compile: _optionalChain([options, 'optionalAccess', _ => _.compile]), interop: _optionalChain([options, 'optionalAccess', _2 => _2.interop]) }],
9
- id.endsWith(".tsx") ? [_plugintransformtypescript2.default, { isTSX: true, allowExtensions: true }] : null
10
- ].filter((i) => i !== null),
9
+ ...id.endsWith(".tsx") ? [[_plugintransformtypescript2.default, { isTSX: true, allowExtensions: true }]] : []
10
+ ],
11
11
  filename: id,
12
- sourceMaps: true,
12
+ sourceMaps: needSourceMap,
13
13
  sourceFileName: id,
14
14
  babelrc: false,
15
15
  configFile: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
 
5
5
  // src/vite.ts
6
6
  var vite_default = unplugin_default.vite;
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
 
5
5
  // src/vite.ts
6
- var vite_default = _chunkMVHM4ZACcjs.unplugin_default.vite;
6
+ var vite_default = _chunkF7CI4ATHcjs.unplugin_default.vite;
7
7
 
8
8
 
9
9
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
 
5
5
  // src/webpack.ts
6
- var webpack_default = _chunkMVHM4ZACcjs.unplugin_default.webpack;
6
+ var webpack_default = _chunkF7CI4ATHcjs.unplugin_default.webpack;
7
7
 
8
8
 
9
9
 
@@ -2,14 +2,14 @@
2
2
  import { transformSync } from "@babel/core";
3
3
  import babelTypescript from "@babel/plugin-transform-typescript";
4
4
  import jsx from "@vue-jsx-vapor/babel";
5
- function transformVueJsxVapor(code, id, options) {
5
+ function transformVueJsxVapor(code, id, options, needSourceMap = false) {
6
6
  return transformSync(code, {
7
7
  plugins: [
8
8
  [jsx, { compile: options?.compile, interop: options?.interop }],
9
- id.endsWith(".tsx") ? [babelTypescript, { isTSX: true, allowExtensions: true }] : null
10
- ].filter((i) => i !== null),
9
+ ...id.endsWith(".tsx") ? [[babelTypescript, { isTSX: true, allowExtensions: true }]] : []
10
+ ],
11
11
  filename: id,
12
- sourceMaps: true,
12
+ sourceMaps: needSourceMap,
13
13
  sourceFileName: id,
14
14
  babelrc: false,
15
15
  configFile: false,
@@ -1,20 +1,55 @@
1
1
  import {
2
2
  transformVueJsxVapor
3
- } from "./chunk-XO54BK2I.js";
3
+ } from "./chunk-SAJ6WS2A.js";
4
4
 
5
5
  // src/raw.ts
6
- import Macros from "@vue-jsx-vapor/macros/raw";
7
- import { createFilter, normalizePath } from "unplugin-utils";
6
+ import macros from "@vue-jsx-vapor/macros/raw";
7
+ import { transformJsxDirective } from "@vue-macros/jsx-directive/api";
8
+ import { createFilter, normalizePath as normalizePath2 } from "unplugin-utils";
8
9
 
9
10
  // src/core/hmr.ts
10
11
  import { isFunctionalNode } from "@vue-jsx-vapor/macros/api";
11
12
  import getHash from "hash-sum";
12
- function registerHMR(result, id, defineComponentNames = ["defineComponent", "defineVaporComponent"]) {
13
+
14
+ // src/core/ssr.ts
15
+ import { relative } from "pathe";
16
+ import { normalizePath } from "unplugin-utils";
17
+ var ssrRegisterHelperId = "/__vue-jsx-ssr-register-helper";
18
+ var ssrRegisterHelperCode = `import { useSSRContext } from "vue"
19
+ export const ssrRegisterHelper = ${ssrRegisterHelper.toString()}`;
20
+ function ssrRegisterHelper(comp, filename) {
21
+ const setup = comp.setup;
22
+ comp.setup = (props, ctx) => {
23
+ const ssrContext = useSSRContext();
24
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);
25
+ if (setup) {
26
+ return setup(props, ctx);
27
+ }
28
+ };
29
+ }
30
+ function injectSSR(id, hotComponents, root = "") {
31
+ const normalizedId = normalizePath(relative(root, id));
32
+ let ssrInjectCode = `
33
+ import { ssrRegisterHelper } from "${ssrRegisterHelperId}"
34
+ const __moduleId = ${JSON.stringify(normalizedId)}`;
35
+ for (const { local } of hotComponents) {
36
+ ssrInjectCode += `
37
+ ssrRegisterHelper(${local}, __moduleId)`;
38
+ }
39
+ return ssrInjectCode;
40
+ }
41
+
42
+ // src/core/hmr.ts
43
+ function injectHMRAndSSR(result, id, options) {
44
+ const ssr = options?.ssr;
45
+ const defineComponentNames = options?.defineComponentNames ?? [
46
+ "defineComponent",
47
+ "defineVaporComponent"
48
+ ];
13
49
  const { ast } = result;
14
50
  const declaredComponents = [];
15
51
  const hotComponents = [];
16
52
  let hasDefaultExport = false;
17
- const ssr = false;
18
53
  for (const node of ast.program.body) {
19
54
  if (node.type === "VariableDeclaration") {
20
55
  const names = parseComponentDecls(node, defineComponentNames);
@@ -96,6 +131,9 @@ if (import.meta.hot) {
96
131
  }`;
97
132
  result.code = code;
98
133
  }
134
+ if (ssr) {
135
+ result.code += injectSSR(id, hotComponents, options?.root);
136
+ }
99
137
  }
100
138
  }
101
139
  function parseComponentDecls(node, fnNames) {
@@ -113,13 +151,39 @@ function isDefineComponentCall(node, names) {
113
151
  // src/core/runtime.ts?raw
114
152
  var runtime_default = 'import {\n effectScope,\n insert,\n isFragment,\n remove,\n renderEffect,\n VaporFragment\n} from "vue";\nexport { shallowRef as useRef } from "vue";\nfunction createFragment(nodes, anchor = document.createTextNode("")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeValue(value, anchor) {\n if (value instanceof Node || isFragment(value)) {\n anchor && (anchor.textContent = "");\n return value;\n } else if (Array.isArray(value)) {\n anchor && (anchor.textContent = "");\n return createFragment(\n value.map((i) => normalizeValue(i)),\n anchor\n );\n } else {\n const result = value == null || typeof value === "boolean" ? "" : String(value);\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 = normalizeValue(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 if (scopes[index]) scopes[index].stop();\n scopes[index] = 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 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
153
 
154
+ // src/core/vue-jsx.ts
155
+ import { transformSync } from "@babel/core";
156
+ import babelTypescript from "@babel/plugin-transform-typescript";
157
+ import jsx from "@vue/babel-plugin-jsx";
158
+ function transformVueJsx(code, id, needSourceMap = false) {
159
+ const result = transformSync(code, {
160
+ plugins: [
161
+ jsx,
162
+ ...id.endsWith(".tsx") ? [[babelTypescript, { isTSX: true, allowExtensions: true }]] : []
163
+ ],
164
+ filename: id,
165
+ sourceMaps: needSourceMap,
166
+ sourceFileName: id,
167
+ babelrc: false,
168
+ configFile: false
169
+ });
170
+ if (result?.code) {
171
+ return {
172
+ code: result.code,
173
+ map: result.map
174
+ };
175
+ }
176
+ }
177
+
116
178
  // src/raw.ts
117
179
  var plugin = (options = {}) => {
118
180
  const transformInclude = createFilter(
119
- options?.include || /\.[cm]?[jt]sx?$/,
120
- options?.exclude
181
+ options?.include || /\.[cm]?[jt]sx$/,
182
+ options?.exclude || /node_modules/
121
183
  );
184
+ let root = "";
122
185
  let needHMR = false;
186
+ let needSourceMap = false;
123
187
  return [
124
188
  {
125
189
  name: "vue-jsx-vapor",
@@ -139,23 +203,29 @@ var plugin = (options = {}) => {
139
203
  };
140
204
  },
141
205
  configResolved(config) {
206
+ root = config.root;
142
207
  needHMR = config.command === "serve";
208
+ needSourceMap = config.command === "serve" || !!config.build.sourcemap;
143
209
  }
144
210
  },
145
211
  resolveId(id) {
146
- if (normalizePath(id) === "vue-jsx-vapor/runtime") return id;
212
+ if (id === ssrRegisterHelperId) return id;
213
+ if (normalizePath2(id) === "vue-jsx-vapor/runtime") return id;
147
214
  },
148
215
  loadInclude(id) {
149
- return normalizePath(id) === "vue-jsx-vapor/runtime";
216
+ if (id === ssrRegisterHelperId) return true;
217
+ return normalizePath2(id) === "vue-jsx-vapor/runtime";
150
218
  },
151
219
  load(id) {
152
- if (normalizePath(id) === "vue-jsx-vapor/runtime") return runtime_default;
220
+ if (id === ssrRegisterHelperId) return ssrRegisterHelperCode;
221
+ if (normalizePath2(id) === "vue-jsx-vapor/runtime") return runtime_default;
153
222
  },
154
223
  transformInclude,
155
- transform(code, id) {
156
- const result = transformVueJsxVapor(code, id, options);
224
+ transform(code, id, opt) {
225
+ const result = transformVueJsxVapor(code, id, options, needSourceMap);
157
226
  if (result?.code) {
158
- needHMR && registerHMR(result, id);
227
+ ;
228
+ (needHMR || opt?.ssr) && injectHMRAndSSR(result, id, { ssr: opt?.ssr, root });
159
229
  return {
160
230
  code: result.code,
161
231
  map: result.map
@@ -163,7 +233,29 @@ var plugin = (options = {}) => {
163
233
  }
164
234
  }
165
235
  },
166
- ...options.macros === false ? [] : options.macros ? [Macros(options.macros === true ? void 0 : options.macros)] : []
236
+ {
237
+ name: "@vue-macros/jsx-directive",
238
+ transformInclude,
239
+ transform(code, id, opt) {
240
+ if (options.interop || opt?.ssr) {
241
+ return transformJsxDirective(code, id, {
242
+ lib: "vue",
243
+ prefix: "v-",
244
+ version: 3.6
245
+ });
246
+ }
247
+ }
248
+ },
249
+ {
250
+ name: "@vitejs/plugin-vue-jsx",
251
+ transformInclude,
252
+ transform(code, id, opt) {
253
+ if (options.interop || opt?.ssr) {
254
+ return transformVueJsx(code, id, needSourceMap);
255
+ }
256
+ }
257
+ },
258
+ ...options.macros === false ? [] : options.macros ? [macros(options.macros === true ? void 0 : options.macros)] : []
167
259
  ];
168
260
  };
169
261
  var raw_default = plugin;
@@ -1,20 +1,55 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVT3G3M3Gcjs = require('./chunk-VT3G3M3G.cjs');
3
+ var _chunkGY6DSRCVcjs = require('./chunk-GY6DSRCV.cjs');
4
4
 
5
5
  // src/raw.ts
6
6
  var _raw = require('@vue-jsx-vapor/macros/raw'); var _raw2 = _interopRequireDefault(_raw);
7
+ var _api = require('@vue-macros/jsx-directive/api');
7
8
  var _unpluginutils = require('unplugin-utils');
8
9
 
9
10
  // src/core/hmr.ts
10
- var _api = require('@vue-jsx-vapor/macros/api');
11
+ var _api3 = require('@vue-jsx-vapor/macros/api');
11
12
  var _hashsum = require('hash-sum'); var _hashsum2 = _interopRequireDefault(_hashsum);
12
- function registerHMR(result, id, defineComponentNames = ["defineComponent", "defineVaporComponent"]) {
13
+
14
+ // src/core/ssr.ts
15
+ var _pathe = require('pathe');
16
+
17
+ var ssrRegisterHelperId = "/__vue-jsx-ssr-register-helper";
18
+ var ssrRegisterHelperCode = `import { useSSRContext } from "vue"
19
+ export const ssrRegisterHelper = ${ssrRegisterHelper.toString()}`;
20
+ function ssrRegisterHelper(comp, filename) {
21
+ const setup = comp.setup;
22
+ comp.setup = (props, ctx) => {
23
+ const ssrContext = useSSRContext();
24
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);
25
+ if (setup) {
26
+ return setup(props, ctx);
27
+ }
28
+ };
29
+ }
30
+ function injectSSR(id, hotComponents, root = "") {
31
+ const normalizedId = _unpluginutils.normalizePath.call(void 0, _pathe.relative.call(void 0, root, id));
32
+ let ssrInjectCode = `
33
+ import { ssrRegisterHelper } from "${ssrRegisterHelperId}"
34
+ const __moduleId = ${JSON.stringify(normalizedId)}`;
35
+ for (const { local } of hotComponents) {
36
+ ssrInjectCode += `
37
+ ssrRegisterHelper(${local}, __moduleId)`;
38
+ }
39
+ return ssrInjectCode;
40
+ }
41
+
42
+ // src/core/hmr.ts
43
+ function injectHMRAndSSR(result, id, options) {
44
+ const ssr = _optionalChain([options, 'optionalAccess', _ => _.ssr]);
45
+ const defineComponentNames = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _2 => _2.defineComponentNames]), () => ( [
46
+ "defineComponent",
47
+ "defineVaporComponent"
48
+ ]));
13
49
  const { ast } = result;
14
50
  const declaredComponents = [];
15
51
  const hotComponents = [];
16
52
  let hasDefaultExport = false;
17
- const ssr = false;
18
53
  for (const node of ast.program.body) {
19
54
  if (node.type === "VariableDeclaration") {
20
55
  const names = parseComponentDecls(node, defineComponentNames);
@@ -61,7 +96,7 @@ function registerHMR(result, id, defineComponentNames = ["defineComponent", "def
61
96
  id: _hashsum2.default.call(void 0, `${id}default`)
62
97
  });
63
98
  }
64
- } else if (isDefineComponentCall(node.declaration, defineComponentNames) || _api.isFunctionalNode.call(void 0, node.declaration)) {
99
+ } else if (isDefineComponentCall(node.declaration, defineComponentNames) || _api3.isFunctionalNode.call(void 0, node.declaration)) {
65
100
  hasDefaultExport = true;
66
101
  hotComponents.push({
67
102
  local: "__default__",
@@ -96,12 +131,15 @@ if (import.meta.hot) {
96
131
  }`;
97
132
  result.code = code;
98
133
  }
134
+ if (ssr) {
135
+ result.code += injectSSR(id, hotComponents, _optionalChain([options, 'optionalAccess', _3 => _3.root]));
136
+ }
99
137
  }
100
138
  }
101
139
  function parseComponentDecls(node, fnNames) {
102
140
  const names = [];
103
141
  for (const decl of node.declarations) {
104
- if (decl.id.type === "Identifier" && (isDefineComponentCall(decl.init, fnNames) || _api.isFunctionalNode.call(void 0, decl.init)))
142
+ if (decl.id.type === "Identifier" && (isDefineComponentCall(decl.init, fnNames) || _api3.isFunctionalNode.call(void 0, decl.init)))
105
143
  names.push(decl.id.name);
106
144
  }
107
145
  return names;
@@ -113,13 +151,39 @@ function isDefineComponentCall(node, names) {
113
151
  // src/core/runtime.ts?raw
114
152
  var runtime_default = 'import {\n effectScope,\n insert,\n isFragment,\n remove,\n renderEffect,\n VaporFragment\n} from "vue";\nexport { shallowRef as useRef } from "vue";\nfunction createFragment(nodes, anchor = document.createTextNode("")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeValue(value, anchor) {\n if (value instanceof Node || isFragment(value)) {\n anchor && (anchor.textContent = "");\n return value;\n } else if (Array.isArray(value)) {\n anchor && (anchor.textContent = "");\n return createFragment(\n value.map((i) => normalizeValue(i)),\n anchor\n );\n } else {\n const result = value == null || typeof value === "boolean" ? "" : String(value);\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 = normalizeValue(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 if (scopes[index]) scopes[index].stop();\n scopes[index] = 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 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
153
 
154
+ // src/core/vue-jsx.ts
155
+ var _core = require('@babel/core');
156
+ var _plugintransformtypescript = require('@babel/plugin-transform-typescript'); var _plugintransformtypescript2 = _interopRequireDefault(_plugintransformtypescript);
157
+ var _babelpluginjsx = require('@vue/babel-plugin-jsx'); var _babelpluginjsx2 = _interopRequireDefault(_babelpluginjsx);
158
+ function transformVueJsx(code, id, needSourceMap = false) {
159
+ const result = _core.transformSync.call(void 0, code, {
160
+ plugins: [
161
+ _babelpluginjsx2.default,
162
+ ...id.endsWith(".tsx") ? [[_plugintransformtypescript2.default, { isTSX: true, allowExtensions: true }]] : []
163
+ ],
164
+ filename: id,
165
+ sourceMaps: needSourceMap,
166
+ sourceFileName: id,
167
+ babelrc: false,
168
+ configFile: false
169
+ });
170
+ if (_optionalChain([result, 'optionalAccess', _4 => _4.code])) {
171
+ return {
172
+ code: result.code,
173
+ map: result.map
174
+ };
175
+ }
176
+ }
177
+
116
178
  // src/raw.ts
117
179
  var plugin = (options = {}) => {
118
180
  const transformInclude = _unpluginutils.createFilter.call(void 0,
119
- _optionalChain([options, 'optionalAccess', _ => _.include]) || /\.[cm]?[jt]sx?$/,
120
- _optionalChain([options, 'optionalAccess', _2 => _2.exclude])
181
+ _optionalChain([options, 'optionalAccess', _5 => _5.include]) || /\.[cm]?[jt]sx$/,
182
+ _optionalChain([options, 'optionalAccess', _6 => _6.exclude]) || /node_modules/
121
183
  );
184
+ let root = "";
122
185
  let needHMR = false;
186
+ let needSourceMap = false;
123
187
  return [
124
188
  {
125
189
  name: "vue-jsx-vapor",
@@ -132,30 +196,36 @@ var plugin = (options = {}) => {
132
196
  include: /\.ts$/
133
197
  },
134
198
  define: {
135
- __VUE_OPTIONS_API__: _nullishCoalesce(_optionalChain([config, 'access', _3 => _3.define, 'optionalAccess', _4 => _4.__VUE_OPTIONS_API__]), () => ( true)),
136
- __VUE_PROD_DEVTOOLS__: _nullishCoalesce(_optionalChain([config, 'access', _5 => _5.define, 'optionalAccess', _6 => _6.__VUE_PROD_DEVTOOLS__]), () => ( false)),
137
- __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: _nullishCoalesce(_optionalChain([config, 'access', _7 => _7.define, 'optionalAccess', _8 => _8.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__]), () => ( false))
199
+ __VUE_OPTIONS_API__: _nullishCoalesce(_optionalChain([config, 'access', _7 => _7.define, 'optionalAccess', _8 => _8.__VUE_OPTIONS_API__]), () => ( true)),
200
+ __VUE_PROD_DEVTOOLS__: _nullishCoalesce(_optionalChain([config, 'access', _9 => _9.define, 'optionalAccess', _10 => _10.__VUE_PROD_DEVTOOLS__]), () => ( false)),
201
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: _nullishCoalesce(_optionalChain([config, 'access', _11 => _11.define, 'optionalAccess', _12 => _12.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__]), () => ( false))
138
202
  }
139
203
  };
140
204
  },
141
205
  configResolved(config) {
206
+ root = config.root;
142
207
  needHMR = config.command === "serve";
208
+ needSourceMap = config.command === "serve" || !!config.build.sourcemap;
143
209
  }
144
210
  },
145
211
  resolveId(id) {
212
+ if (id === ssrRegisterHelperId) return id;
146
213
  if (_unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime") return id;
147
214
  },
148
215
  loadInclude(id) {
216
+ if (id === ssrRegisterHelperId) return true;
149
217
  return _unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime";
150
218
  },
151
219
  load(id) {
220
+ if (id === ssrRegisterHelperId) return ssrRegisterHelperCode;
152
221
  if (_unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime") return runtime_default;
153
222
  },
154
223
  transformInclude,
155
- transform(code, id) {
156
- const result = _chunkVT3G3M3Gcjs.transformVueJsxVapor.call(void 0, code, id, options);
157
- if (_optionalChain([result, 'optionalAccess', _9 => _9.code])) {
158
- needHMR && registerHMR(result, id);
224
+ transform(code, id, opt) {
225
+ const result = _chunkGY6DSRCVcjs.transformVueJsxVapor.call(void 0, code, id, options, needSourceMap);
226
+ if (_optionalChain([result, 'optionalAccess', _13 => _13.code])) {
227
+ ;
228
+ (needHMR || _optionalChain([opt, 'optionalAccess', _14 => _14.ssr])) && injectHMRAndSSR(result, id, { ssr: _optionalChain([opt, 'optionalAccess', _15 => _15.ssr]), root });
159
229
  return {
160
230
  code: result.code,
161
231
  map: result.map
@@ -163,6 +233,28 @@ var plugin = (options = {}) => {
163
233
  }
164
234
  }
165
235
  },
236
+ {
237
+ name: "@vue-macros/jsx-directive",
238
+ transformInclude,
239
+ transform(code, id, opt) {
240
+ if (options.interop || _optionalChain([opt, 'optionalAccess', _16 => _16.ssr])) {
241
+ return _api.transformJsxDirective.call(void 0, code, id, {
242
+ lib: "vue",
243
+ prefix: "v-",
244
+ version: 3.6
245
+ });
246
+ }
247
+ }
248
+ },
249
+ {
250
+ name: "@vitejs/plugin-vue-jsx",
251
+ transformInclude,
252
+ transform(code, id, opt) {
253
+ if (options.interop || _optionalChain([opt, 'optionalAccess', _17 => _17.ssr])) {
254
+ return transformVueJsx(code, id, needSourceMap);
255
+ }
256
+ }
257
+ },
166
258
  ...options.macros === false ? [] : options.macros ? [_raw2.default.call(void 0, options.macros === true ? void 0 : options.macros)] : []
167
259
  ];
168
260
  };
package/dist/esbuild.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-SM4PMROG.cjs');
6
- require('./chunk-VT3G3M3G.cjs');
5
+ require('./chunk-VSS2IZIS.cjs');
6
+ require('./chunk-GY6DSRCV.cjs');
7
7
 
8
8
  // src/esbuild.ts
9
- var esbuild_default = _chunkMVHM4ZACcjs.unplugin_default.esbuild;
9
+ var esbuild_default = _chunkF7CI4ATHcjs.unplugin_default.esbuild;
10
10
 
11
11
 
12
12
  exports.default = esbuild_default;
package/dist/esbuild.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-ELIW3YO2.js";
6
- import "./chunk-XO54BK2I.js";
5
+ import "./chunk-T3F6TYMY.js";
6
+ import "./chunk-SAJ6WS2A.js";
7
7
 
8
8
  // src/esbuild.ts
9
9
  var esbuild_default = unplugin_default.esbuild;
package/dist/nuxt.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk47ZAMM2Gcjs = require('./chunk-47ZAMM2G.cjs');
3
+ var _chunkM4VKLZSBcjs = require('./chunk-M4VKLZSB.cjs');
4
4
 
5
5
 
6
- var _chunkSU6A6M56cjs = require('./chunk-SU6A6M56.cjs');
7
- require('./chunk-MVHM4ZAC.cjs');
6
+ var _chunkQBIU4H54cjs = require('./chunk-QBIU4H54.cjs');
7
+ require('./chunk-F7CI4ATH.cjs');
8
8
  require('./chunk-GODVM7NB.cjs');
9
- require('./chunk-SM4PMROG.cjs');
10
- require('./chunk-VT3G3M3G.cjs');
9
+ require('./chunk-VSS2IZIS.cjs');
10
+ require('./chunk-GY6DSRCV.cjs');
11
11
 
12
12
  // src/nuxt.ts
13
13
  var _kit = require('@nuxt/kit');
@@ -18,8 +18,8 @@ var nuxt_default = _kit.defineNuxtModule.call(void 0, {
18
18
  configKey: "unpluginStarter"
19
19
  },
20
20
  setup(options) {
21
- _kit.addVitePlugin.call(void 0, () => _chunk47ZAMM2Gcjs.vite_default.call(void 0, options));
22
- _kit.addWebpackPlugin.call(void 0, () => _chunkSU6A6M56cjs.webpack_default.call(void 0, options));
21
+ _kit.addVitePlugin.call(void 0, () => _chunkM4VKLZSBcjs.vite_default.call(void 0, options));
22
+ _kit.addWebpackPlugin.call(void 0, () => _chunkQBIU4H54cjs.webpack_default.call(void 0, options));
23
23
  }
24
24
  });
25
25
 
package/dist/nuxt.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-2XE3EMLY.js";
3
+ } from "./chunk-HNBQ42EP.js";
4
4
  import {
5
5
  webpack_default
6
- } from "./chunk-BBQNTCR7.js";
7
- import "./chunk-4OJ67SAP.js";
6
+ } from "./chunk-4HP6QVER.js";
7
+ import "./chunk-G2KD2VHX.js";
8
8
  import "./chunk-JNAGPWSX.js";
9
- import "./chunk-ELIW3YO2.js";
10
- import "./chunk-XO54BK2I.js";
9
+ import "./chunk-T3F6TYMY.js";
10
+ import "./chunk-SAJ6WS2A.js";
11
11
 
12
12
  // src/nuxt.ts
13
13
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
package/dist/raw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSM4PMROGcjs = require('./chunk-SM4PMROG.cjs');
4
- require('./chunk-VT3G3M3G.cjs');
3
+ var _chunkVSS2IZIScjs = require('./chunk-VSS2IZIS.cjs');
4
+ require('./chunk-GY6DSRCV.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkSM4PMROGcjs.raw_default;
7
+ exports.default = _chunkVSS2IZIScjs.raw_default;
8
8
 
9
9
  module.exports = exports.default;
package/dist/raw.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raw_default
3
- } from "./chunk-ELIW3YO2.js";
4
- import "./chunk-XO54BK2I.js";
3
+ } from "./chunk-T3F6TYMY.js";
4
+ import "./chunk-SAJ6WS2A.js";
5
5
  export {
6
6
  raw_default as default
7
7
  };
package/dist/rolldown.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-SM4PMROG.cjs');
6
- require('./chunk-VT3G3M3G.cjs');
5
+ require('./chunk-VSS2IZIS.cjs');
6
+ require('./chunk-GY6DSRCV.cjs');
7
7
 
8
8
  // src/rolldown.ts
9
9
  var _unplugin = require('unplugin');
10
- var rolldown_default = _unplugin.createRollupPlugin.call(void 0, _chunkMVHM4ZACcjs.unpluginFactory);
10
+ var rolldown_default = _unplugin.createRollupPlugin.call(void 0, _chunkF7CI4ATHcjs.unpluginFactory);
11
11
 
12
12
 
13
13
  exports.default = rolldown_default;
@@ -4,6 +4,6 @@ import '@vue-jsx-vapor/compiler';
4
4
  import '@vue-jsx-vapor/macros';
5
5
  import 'unplugin-utils';
6
6
 
7
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
7
+ declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
8
8
 
9
9
  export = _default;
@@ -4,6 +4,6 @@ import '@vue-jsx-vapor/compiler';
4
4
  import '@vue-jsx-vapor/macros';
5
5
  import 'unplugin-utils';
6
6
 
7
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any>[];
7
+ declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
8
8
 
9
9
  export { _default as default };
package/dist/rolldown.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-ELIW3YO2.js";
6
- import "./chunk-XO54BK2I.js";
5
+ import "./chunk-T3F6TYMY.js";
6
+ import "./chunk-SAJ6WS2A.js";
7
7
 
8
8
  // src/rolldown.ts
9
9
  import { createRollupPlugin } from "unplugin";
package/dist/rollup.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-SM4PMROG.cjs');
6
- require('./chunk-VT3G3M3G.cjs');
5
+ require('./chunk-VSS2IZIS.cjs');
6
+ require('./chunk-GY6DSRCV.cjs');
7
7
 
8
8
  // src/rollup.ts
9
- var rollup_default = _chunkMVHM4ZACcjs.unplugin_default.rollup;
9
+ var rollup_default = _chunkF7CI4ATHcjs.unplugin_default.rollup;
10
10
 
11
11
 
12
12
  exports.default = rollup_default;
package/dist/rollup.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-ELIW3YO2.js";
6
- import "./chunk-XO54BK2I.js";
5
+ import "./chunk-T3F6TYMY.js";
6
+ import "./chunk-SAJ6WS2A.js";
7
7
 
8
8
  // src/rollup.ts
9
9
  var rollup_default = unplugin_default.rollup;
package/dist/rspack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-SM4PMROG.cjs');
6
- require('./chunk-VT3G3M3G.cjs');
5
+ require('./chunk-VSS2IZIS.cjs');
6
+ require('./chunk-GY6DSRCV.cjs');
7
7
 
8
8
  // src/rspack.ts
9
- var rspack_default = _chunkMVHM4ZACcjs.unplugin_default.rspack;
9
+ var rspack_default = _chunkF7CI4ATHcjs.unplugin_default.rspack;
10
10
 
11
11
 
12
12
  exports.default = rspack_default;
package/dist/rspack.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-G2KD2VHX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-ELIW3YO2.js";
6
- import "./chunk-XO54BK2I.js";
5
+ import "./chunk-T3F6TYMY.js";
6
+ import "./chunk-SAJ6WS2A.js";
7
7
 
8
8
  // src/rspack.ts
9
9
  var rspack_default = unplugin_default.rspack;
package/dist/unplugin.cjs CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMVHM4ZACcjs = require('./chunk-MVHM4ZAC.cjs');
5
+ var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
6
6
  require('./chunk-GODVM7NB.cjs');
7
- require('./chunk-SM4PMROG.cjs');
8
- require('./chunk-VT3G3M3G.cjs');
7
+ require('./chunk-VSS2IZIS.cjs');
8
+ require('./chunk-GY6DSRCV.cjs');
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.default = _chunkMVHM4ZACcjs.unplugin_default; exports.unplugin = _chunkMVHM4ZACcjs.unplugin; exports.unpluginFactory = _chunkMVHM4ZACcjs.unpluginFactory;
13
+ exports.default = _chunkF7CI4ATHcjs.unplugin_default; exports.unplugin = _chunkF7CI4ATHcjs.unplugin; exports.unpluginFactory = _chunkF7CI4ATHcjs.unpluginFactory;
package/dist/unplugin.js CHANGED
@@ -2,10 +2,10 @@ import {
2
2
  unplugin,
3
3
  unpluginFactory,
4
4
  unplugin_default
5
- } from "./chunk-4OJ67SAP.js";
5
+ } from "./chunk-G2KD2VHX.js";
6
6
  import "./chunk-JNAGPWSX.js";
7
- import "./chunk-ELIW3YO2.js";
8
- import "./chunk-XO54BK2I.js";
7
+ import "./chunk-T3F6TYMY.js";
8
+ import "./chunk-SAJ6WS2A.js";
9
9
  export {
10
10
  unplugin_default as default,
11
11
  unplugin,
package/dist/vite.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk47ZAMM2Gcjs = require('./chunk-47ZAMM2G.cjs');
4
- require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkM4VKLZSBcjs = require('./chunk-M4VKLZSB.cjs');
4
+ require('./chunk-F7CI4ATH.cjs');
5
5
  require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-SM4PMROG.cjs');
7
- require('./chunk-VT3G3M3G.cjs');
6
+ require('./chunk-VSS2IZIS.cjs');
7
+ require('./chunk-GY6DSRCV.cjs');
8
8
 
9
9
 
10
- exports.default = _chunk47ZAMM2Gcjs.vite_default;
10
+ exports.default = _chunkM4VKLZSBcjs.vite_default;
11
11
 
12
12
  module.exports = exports.default;
package/dist/vite.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-2XE3EMLY.js";
4
- import "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-HNBQ42EP.js";
4
+ import "./chunk-G2KD2VHX.js";
5
5
  import "./chunk-JNAGPWSX.js";
6
- import "./chunk-ELIW3YO2.js";
7
- import "./chunk-XO54BK2I.js";
6
+ import "./chunk-T3F6TYMY.js";
7
+ import "./chunk-SAJ6WS2A.js";
8
8
  export {
9
9
  vite_default as default
10
10
  };
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSU6A6M56cjs = require('./chunk-SU6A6M56.cjs');
4
- require('./chunk-MVHM4ZAC.cjs');
3
+ var _chunkQBIU4H54cjs = require('./chunk-QBIU4H54.cjs');
4
+ require('./chunk-F7CI4ATH.cjs');
5
5
  require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-SM4PMROG.cjs');
7
- require('./chunk-VT3G3M3G.cjs');
6
+ require('./chunk-VSS2IZIS.cjs');
7
+ require('./chunk-GY6DSRCV.cjs');
8
8
 
9
9
 
10
- exports.default = _chunkSU6A6M56cjs.webpack_default;
10
+ exports.default = _chunkQBIU4H54cjs.webpack_default;
11
11
 
12
12
  module.exports = exports.default;
package/dist/webpack.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-BBQNTCR7.js";
4
- import "./chunk-4OJ67SAP.js";
3
+ } from "./chunk-4HP6QVER.js";
4
+ import "./chunk-G2KD2VHX.js";
5
5
  import "./chunk-JNAGPWSX.js";
6
- import "./chunk-ELIW3YO2.js";
7
- import "./chunk-XO54BK2I.js";
6
+ import "./chunk-T3F6TYMY.js";
7
+ import "./chunk-SAJ6WS2A.js";
8
8
  export {
9
9
  webpack_default as default
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.1.8",
3
+ "version": "2.3.0",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -209,14 +209,17 @@
209
209
  "@babel/core": "^7.26.8",
210
210
  "@babel/plugin-transform-typescript": "^7.26.8",
211
211
  "@types/hash-sum": "^1.0.2",
212
+ "@vue-macros/jsx-directive": "3.0.0-beta.7",
212
213
  "@vue-macros/volar": "^3.0.0-beta.7",
214
+ "@vue/babel-plugin-jsx": "^1.4.0",
213
215
  "hash-sum": "^2.0.0",
216
+ "pathe": "^2.0.3",
214
217
  "ts-macro": "^0.1.25",
215
- "unplugin": "^1.16.1",
218
+ "unplugin": "^2.2.2",
216
219
  "unplugin-utils": "^0.2.4",
217
- "@vue-jsx-vapor/babel": "2.1.8",
218
- "@vue-jsx-vapor/macros": "2.1.8",
219
- "@vue-jsx-vapor/compiler": "2.1.8"
220
+ "@vue-jsx-vapor/babel": "2.3.0",
221
+ "@vue-jsx-vapor/compiler": "2.3.0",
222
+ "@vue-jsx-vapor/macros": "2.3.0"
220
223
  },
221
224
  "devDependencies": {
222
225
  "@nuxt/kit": "^3.16.0",