vue-jsx-vapor 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/astro.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-GFRKGJDJ.cjs');
5
+ require('./chunk-KX2A7OHI.cjs');
6
6
  require('./chunk-VTXOK4UC.cjs');
7
7
 
8
8
  // src/astro.ts
@@ -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(_chunkH62XZOLWcjs.unplugin_default.vite(options));
14
+ astro.config.vite.plugins.push(_chunk54T6FZV5cjs.unplugin_default.vite(options));
15
15
  }
16
16
  }
17
17
  });
package/dist/astro.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-6KXDH742.js";
5
+ import "./chunk-RE7HJXVF.js";
6
6
  import "./chunk-RGJB4EQM.js";
7
7
 
8
8
  // src/astro.ts
@@ -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 _chunkGFRKGJDJcjs = require('./chunk-GFRKGJDJ.cjs');
3
+ var _chunkKX2A7OHIcjs = require('./chunk-KX2A7OHI.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
- ..._chunkGFRKGJDJcjs.raw_default.call(void 0, options),
10
+ ..._chunkKX2A7OHIcjs.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
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
 
5
5
  // src/vite.ts
6
6
  var vite_default = unplugin_default.vite;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raw_default
3
- } from "./chunk-6KXDH742.js";
3
+ } from "./chunk-RE7HJXVF.js";
4
4
 
5
5
  // src/unplugin.ts
6
6
  import { createUnplugin } from "unplugin";
@@ -0,0 +1,58 @@
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
+
3
+ var _chunkVTXOK4UCcjs = require('./chunk-VTXOK4UC.cjs');
4
+
5
+ // src/raw.ts
6
+ var _raw = require('@vue-jsx-vapor/macros/raw'); var _raw2 = _interopRequireDefault(_raw);
7
+ var _unpluginutils = require('unplugin-utils');
8
+
9
+ // src/core/runtime.ts?raw
10
+ 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';
11
+
12
+ // src/raw.ts
13
+ var plugin = (options = {}) => {
14
+ const transformInclude = _unpluginutils.createFilter.call(void 0,
15
+ _optionalChain([options, 'optionalAccess', _ => _.include]) || /\.[cm]?[jt]sx?$/,
16
+ _optionalChain([options, 'optionalAccess', _2 => _2.exclude])
17
+ );
18
+ return [
19
+ {
20
+ name: "vue-jsx-vapor",
21
+ vite: {
22
+ config(config) {
23
+ return {
24
+ // only apply esbuild to ts files
25
+ // since we are handling jsx and tsx now
26
+ esbuild: {
27
+ include: /\.ts$/
28
+ },
29
+ define: {
30
+ __VUE_OPTIONS_API__: _nullishCoalesce(_optionalChain([config, 'access', _3 => _3.define, 'optionalAccess', _4 => _4.__VUE_OPTIONS_API__]), () => ( true)),
31
+ __VUE_PROD_DEVTOOLS__: _nullishCoalesce(_optionalChain([config, 'access', _5 => _5.define, 'optionalAccess', _6 => _6.__VUE_PROD_DEVTOOLS__]), () => ( false)),
32
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: _nullishCoalesce(_optionalChain([config, 'access', _7 => _7.define, 'optionalAccess', _8 => _8.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__]), () => ( false))
33
+ }
34
+ };
35
+ }
36
+ },
37
+ resolveId(id) {
38
+ if (_unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime") return id;
39
+ },
40
+ loadInclude(id) {
41
+ return _unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime";
42
+ },
43
+ load(id) {
44
+ if (_unpluginutils.normalizePath.call(void 0, id) === "vue-jsx-vapor/runtime") return runtime_default;
45
+ },
46
+ transformInclude,
47
+ transform(code, id) {
48
+ return _chunkVTXOK4UCcjs.transformVueJsxVapor.call(void 0, code, id, options);
49
+ }
50
+ },
51
+ ...options.macros === false ? [] : options.macros ? [_raw2.default.call(void 0, options.macros === true ? void 0 : options.macros)] : []
52
+ ];
53
+ };
54
+ var raw_default = plugin;
55
+
56
+
57
+
58
+ exports.raw_default = raw_default;
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
 
5
5
  // src/vite.ts
6
- var vite_default = _chunkH62XZOLWcjs.unplugin_default.vite;
6
+ var vite_default = _chunk54T6FZV5cjs.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 _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
 
5
5
  // src/webpack.ts
6
- var webpack_default = _chunkH62XZOLWcjs.unplugin_default.webpack;
6
+ var webpack_default = _chunk54T6FZV5cjs.unplugin_default.webpack;
7
7
 
8
8
 
9
9
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  var webpack_default = unplugin_default.webpack;
@@ -0,0 +1,58 @@
1
+ import {
2
+ transformVueJsxVapor
3
+ } from "./chunk-RGJB4EQM.js";
4
+
5
+ // src/raw.ts
6
+ import Macros from "@vue-jsx-vapor/macros/raw";
7
+ import { createFilter, normalizePath } from "unplugin-utils";
8
+
9
+ // src/core/runtime.ts?raw
10
+ 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';
11
+
12
+ // src/raw.ts
13
+ var plugin = (options = {}) => {
14
+ const transformInclude = createFilter(
15
+ options?.include || /\.[cm]?[jt]sx?$/,
16
+ options?.exclude
17
+ );
18
+ return [
19
+ {
20
+ name: "vue-jsx-vapor",
21
+ vite: {
22
+ config(config) {
23
+ return {
24
+ // only apply esbuild to ts files
25
+ // since we are handling jsx and tsx now
26
+ esbuild: {
27
+ include: /\.ts$/
28
+ },
29
+ define: {
30
+ __VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
31
+ __VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
32
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false
33
+ }
34
+ };
35
+ }
36
+ },
37
+ resolveId(id) {
38
+ if (normalizePath(id) === "vue-jsx-vapor/runtime") return id;
39
+ },
40
+ loadInclude(id) {
41
+ return normalizePath(id) === "vue-jsx-vapor/runtime";
42
+ },
43
+ load(id) {
44
+ if (normalizePath(id) === "vue-jsx-vapor/runtime") return runtime_default;
45
+ },
46
+ transformInclude,
47
+ transform(code, id) {
48
+ return transformVueJsxVapor(code, id, options);
49
+ }
50
+ },
51
+ ...options.macros === false ? [] : options.macros ? [Macros(options.macros === true ? void 0 : options.macros)] : []
52
+ ];
53
+ };
54
+ var raw_default = plugin;
55
+
56
+ export {
57
+ raw_default
58
+ };
package/dist/esbuild.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-GFRKGJDJ.cjs');
5
+ require('./chunk-KX2A7OHI.cjs');
6
6
  require('./chunk-VTXOK4UC.cjs');
7
7
 
8
8
  // src/esbuild.ts
9
- var esbuild_default = _chunkH62XZOLWcjs.unplugin_default.esbuild;
9
+ var esbuild_default = _chunk54T6FZV5cjs.unplugin_default.esbuild;
10
10
 
11
11
 
12
12
  exports.default = esbuild_default;
package/dist/esbuild.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-6KXDH742.js";
5
+ import "./chunk-RE7HJXVF.js";
6
6
  import "./chunk-RGJB4EQM.js";
7
7
 
8
8
  // src/esbuild.ts
package/dist/index.cjs CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts
2
- var _vue = require('vue');
3
-
4
- // src/core/runtime.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/runtime.ts
5
2
 
6
3
 
7
4
 
@@ -9,6 +6,7 @@ var _vue = require('vue');
9
6
 
10
7
 
11
8
 
9
+ var _vue = require('vue');
12
10
 
13
11
  function createFragment(nodes, anchor = document.createTextNode("")) {
14
12
  const frag = new (0, _vue.VaporFragment)(nodes);
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- // src/index.ts
2
- import { shallowRef } from "vue";
3
-
4
1
  // src/core/runtime.ts
5
2
  import {
6
3
  effectScope,
@@ -10,6 +7,7 @@ import {
10
7
  renderEffect,
11
8
  VaporFragment
12
9
  } from "vue";
10
+ import { shallowRef } from "vue";
13
11
  function createFragment(nodes, anchor = document.createTextNode("")) {
14
12
  const frag = new VaporFragment(nodes);
15
13
  frag.anchor = anchor;
package/dist/nuxt.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBACJ4NJZcjs = require('./chunk-BACJ4NJZ.cjs');
3
+ var _chunkL5DPFMXVcjs = require('./chunk-L5DPFMXV.cjs');
4
4
 
5
5
 
6
- var _chunkFH74ALLCcjs = require('./chunk-FH74ALLC.cjs');
7
- require('./chunk-H62XZOLW.cjs');
6
+ var _chunkLJD2GXFTcjs = require('./chunk-LJD2GXFT.cjs');
7
+ require('./chunk-54T6FZV5.cjs');
8
8
  require('./chunk-GODVM7NB.cjs');
9
- require('./chunk-GFRKGJDJ.cjs');
9
+ require('./chunk-KX2A7OHI.cjs');
10
10
  require('./chunk-VTXOK4UC.cjs');
11
11
 
12
12
  // src/nuxt.ts
@@ -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, () => _chunkBACJ4NJZcjs.vite_default.call(void 0, options));
22
- _kit.addWebpackPlugin.call(void 0, () => _chunkFH74ALLCcjs.webpack_default.call(void 0, options));
21
+ _kit.addVitePlugin.call(void 0, () => _chunkL5DPFMXVcjs.vite_default.call(void 0, options));
22
+ _kit.addWebpackPlugin.call(void 0, () => _chunkLJD2GXFTcjs.webpack_default.call(void 0, options));
23
23
  }
24
24
  });
25
25
 
package/dist/nuxt.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-2FXC3LQS.js";
3
+ } from "./chunk-64YD56NL.js";
4
4
  import {
5
5
  webpack_default
6
- } from "./chunk-BULCI54A.js";
7
- import "./chunk-MKQCYQ5T.js";
6
+ } from "./chunk-ODAQLE75.js";
7
+ import "./chunk-KQYI25OX.js";
8
8
  import "./chunk-JNAGPWSX.js";
9
- import "./chunk-6KXDH742.js";
9
+ import "./chunk-RE7HJXVF.js";
10
10
  import "./chunk-RGJB4EQM.js";
11
11
 
12
12
  // src/nuxt.ts
package/dist/raw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGFRKGJDJcjs = require('./chunk-GFRKGJDJ.cjs');
3
+ var _chunkKX2A7OHIcjs = require('./chunk-KX2A7OHI.cjs');
4
4
  require('./chunk-VTXOK4UC.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkGFRKGJDJcjs.raw_default;
7
+ exports.default = _chunkKX2A7OHIcjs.raw_default;
8
8
 
9
9
  module.exports = exports.default;
package/dist/raw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raw_default
3
- } from "./chunk-6KXDH742.js";
3
+ } from "./chunk-RE7HJXVF.js";
4
4
  import "./chunk-RGJB4EQM.js";
5
5
  export {
6
6
  raw_default as default
package/dist/rolldown.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-GFRKGJDJ.cjs');
5
+ require('./chunk-KX2A7OHI.cjs');
6
6
  require('./chunk-VTXOK4UC.cjs');
7
7
 
8
8
  // src/rolldown.ts
9
9
  var _unplugin = require('unplugin');
10
- var rolldown_default = _unplugin.createRollupPlugin.call(void 0, _chunkH62XZOLWcjs.unpluginFactory);
10
+ var rolldown_default = _unplugin.createRollupPlugin.call(void 0, _chunk54T6FZV5cjs.unpluginFactory);
11
11
 
12
12
 
13
13
  exports.default = rolldown_default;
package/dist/rolldown.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-6KXDH742.js";
5
+ import "./chunk-RE7HJXVF.js";
6
6
  import "./chunk-RGJB4EQM.js";
7
7
 
8
8
  // src/rolldown.ts
package/dist/rollup.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-GFRKGJDJ.cjs');
5
+ require('./chunk-KX2A7OHI.cjs');
6
6
  require('./chunk-VTXOK4UC.cjs');
7
7
 
8
8
  // src/rollup.ts
9
- var rollup_default = _chunkH62XZOLWcjs.unplugin_default.rollup;
9
+ var rollup_default = _chunk54T6FZV5cjs.unplugin_default.rollup;
10
10
 
11
11
 
12
12
  exports.default = rollup_default;
package/dist/rollup.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-6KXDH742.js";
5
+ import "./chunk-RE7HJXVF.js";
6
6
  import "./chunk-RGJB4EQM.js";
7
7
 
8
8
  // src/rollup.ts
package/dist/rspack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
3
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
4
4
  require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-GFRKGJDJ.cjs');
5
+ require('./chunk-KX2A7OHI.cjs');
6
6
  require('./chunk-VTXOK4UC.cjs');
7
7
 
8
8
  // src/rspack.ts
9
- var rspack_default = _chunkH62XZOLWcjs.unplugin_default.rspack;
9
+ var rspack_default = _chunk54T6FZV5cjs.unplugin_default.rspack;
10
10
 
11
11
 
12
12
  exports.default = rspack_default;
package/dist/rspack.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-KQYI25OX.js";
4
4
  import "./chunk-JNAGPWSX.js";
5
- import "./chunk-6KXDH742.js";
5
+ import "./chunk-RE7HJXVF.js";
6
6
  import "./chunk-RGJB4EQM.js";
7
7
 
8
8
  // src/rspack.ts
package/dist/unplugin.cjs CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkH62XZOLWcjs = require('./chunk-H62XZOLW.cjs');
5
+ var _chunk54T6FZV5cjs = require('./chunk-54T6FZV5.cjs');
6
6
  require('./chunk-GODVM7NB.cjs');
7
- require('./chunk-GFRKGJDJ.cjs');
7
+ require('./chunk-KX2A7OHI.cjs');
8
8
  require('./chunk-VTXOK4UC.cjs');
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.default = _chunkH62XZOLWcjs.unplugin_default; exports.unplugin = _chunkH62XZOLWcjs.unplugin; exports.unpluginFactory = _chunkH62XZOLWcjs.unpluginFactory;
13
+ exports.default = _chunk54T6FZV5cjs.unplugin_default; exports.unplugin = _chunk54T6FZV5cjs.unplugin; exports.unpluginFactory = _chunk54T6FZV5cjs.unpluginFactory;
package/dist/unplugin.js CHANGED
@@ -2,9 +2,9 @@ import {
2
2
  unplugin,
3
3
  unpluginFactory,
4
4
  unplugin_default
5
- } from "./chunk-MKQCYQ5T.js";
5
+ } from "./chunk-KQYI25OX.js";
6
6
  import "./chunk-JNAGPWSX.js";
7
- import "./chunk-6KXDH742.js";
7
+ import "./chunk-RE7HJXVF.js";
8
8
  import "./chunk-RGJB4EQM.js";
9
9
  export {
10
10
  unplugin_default as default,
package/dist/vite.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBACJ4NJZcjs = require('./chunk-BACJ4NJZ.cjs');
4
- require('./chunk-H62XZOLW.cjs');
3
+ var _chunkL5DPFMXVcjs = require('./chunk-L5DPFMXV.cjs');
4
+ require('./chunk-54T6FZV5.cjs');
5
5
  require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-GFRKGJDJ.cjs');
6
+ require('./chunk-KX2A7OHI.cjs');
7
7
  require('./chunk-VTXOK4UC.cjs');
8
8
 
9
9
 
10
- exports.default = _chunkBACJ4NJZcjs.vite_default;
10
+ exports.default = _chunkL5DPFMXVcjs.vite_default;
11
11
 
12
12
  module.exports = exports.default;
package/dist/vite.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-2FXC3LQS.js";
4
- import "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-64YD56NL.js";
4
+ import "./chunk-KQYI25OX.js";
5
5
  import "./chunk-JNAGPWSX.js";
6
- import "./chunk-6KXDH742.js";
6
+ import "./chunk-RE7HJXVF.js";
7
7
  import "./chunk-RGJB4EQM.js";
8
8
  export {
9
9
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFH74ALLCcjs = require('./chunk-FH74ALLC.cjs');
4
- require('./chunk-H62XZOLW.cjs');
3
+ var _chunkLJD2GXFTcjs = require('./chunk-LJD2GXFT.cjs');
4
+ require('./chunk-54T6FZV5.cjs');
5
5
  require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-GFRKGJDJ.cjs');
6
+ require('./chunk-KX2A7OHI.cjs');
7
7
  require('./chunk-VTXOK4UC.cjs');
8
8
 
9
9
 
10
- exports.default = _chunkFH74ALLCcjs.webpack_default;
10
+ exports.default = _chunkLJD2GXFTcjs.webpack_default;
11
11
 
12
12
  module.exports = exports.default;
package/dist/webpack.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-BULCI54A.js";
4
- import "./chunk-MKQCYQ5T.js";
3
+ } from "./chunk-ODAQLE75.js";
4
+ import "./chunk-KQYI25OX.js";
5
5
  import "./chunk-JNAGPWSX.js";
6
- import "./chunk-6KXDH742.js";
6
+ import "./chunk-RE7HJXVF.js";
7
7
  import "./chunk-RGJB4EQM.js";
8
8
  export {
9
9
  webpack_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -213,16 +213,16 @@
213
213
  "ts-macro": "^0.1.25",
214
214
  "unplugin": "^1.16.1",
215
215
  "unplugin-utils": "^0.2.4",
216
- "@vue-jsx-vapor/macros": "2.1.3",
217
- "@vue-jsx-vapor/compiler": "2.1.3",
218
- "@vue-jsx-vapor/babel": "2.1.3"
216
+ "@vue-jsx-vapor/compiler": "2.1.4",
217
+ "@vue-jsx-vapor/macros": "2.1.4",
218
+ "@vue-jsx-vapor/babel": "2.1.4"
219
219
  },
220
220
  "devDependencies": {
221
221
  "@nuxt/kit": "^3.16.0",
222
222
  "@nuxt/schema": "^3.16.0",
223
223
  "@types/babel__core": "^7.20.5",
224
224
  "csstype": "^3.1.3",
225
- "vue": "https://pkg.pr.new/vue@13061"
225
+ "vue": "https://pkg.pr.new/vue@eeab9c4"
226
226
  },
227
227
  "scripts": {
228
228
  "build": "tsup",
@@ -1,44 +0,0 @@
1
- import {
2
- transformVueJsxVapor
3
- } from "./chunk-RGJB4EQM.js";
4
-
5
- // src/raw.ts
6
- import Macros from "@vue-jsx-vapor/macros/raw";
7
- import { createFilter } from "unplugin-utils";
8
- var plugin = (options = {}) => {
9
- const transformInclude = createFilter(
10
- options?.include || /\.[cm]?[jt]sx?$/,
11
- options?.exclude
12
- );
13
- return [
14
- {
15
- name: "vue-jsx-vapor",
16
- vite: {
17
- config(config) {
18
- return {
19
- // only apply esbuild to ts files
20
- // since we are handling jsx and tsx now
21
- esbuild: {
22
- include: /\.ts$/
23
- },
24
- define: {
25
- __VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
26
- __VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
27
- __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false
28
- }
29
- };
30
- }
31
- },
32
- transformInclude,
33
- transform(code, id) {
34
- return transformVueJsxVapor(code, id, options);
35
- }
36
- },
37
- ...options.macros === false ? [] : options.macros ? [Macros(options.macros === true ? void 0 : options.macros)] : []
38
- ];
39
- };
40
- var raw_default = plugin;
41
-
42
- export {
43
- raw_default
44
- };
@@ -1,44 +0,0 @@
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
-
3
- var _chunkVTXOK4UCcjs = require('./chunk-VTXOK4UC.cjs');
4
-
5
- // src/raw.ts
6
- var _raw = require('@vue-jsx-vapor/macros/raw'); var _raw2 = _interopRequireDefault(_raw);
7
- var _unpluginutils = require('unplugin-utils');
8
- var plugin = (options = {}) => {
9
- const transformInclude = _unpluginutils.createFilter.call(void 0,
10
- _optionalChain([options, 'optionalAccess', _ => _.include]) || /\.[cm]?[jt]sx?$/,
11
- _optionalChain([options, 'optionalAccess', _2 => _2.exclude])
12
- );
13
- return [
14
- {
15
- name: "vue-jsx-vapor",
16
- vite: {
17
- config(config) {
18
- return {
19
- // only apply esbuild to ts files
20
- // since we are handling jsx and tsx now
21
- esbuild: {
22
- include: /\.ts$/
23
- },
24
- define: {
25
- __VUE_OPTIONS_API__: _nullishCoalesce(_optionalChain([config, 'access', _3 => _3.define, 'optionalAccess', _4 => _4.__VUE_OPTIONS_API__]), () => ( true)),
26
- __VUE_PROD_DEVTOOLS__: _nullishCoalesce(_optionalChain([config, 'access', _5 => _5.define, 'optionalAccess', _6 => _6.__VUE_PROD_DEVTOOLS__]), () => ( false)),
27
- __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: _nullishCoalesce(_optionalChain([config, 'access', _7 => _7.define, 'optionalAccess', _8 => _8.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__]), () => ( false))
28
- }
29
- };
30
- }
31
- },
32
- transformInclude,
33
- transform(code, id) {
34
- return _chunkVTXOK4UCcjs.transformVueJsxVapor.call(void 0, code, id, options);
35
- }
36
- },
37
- ...options.macros === false ? [] : options.macros ? [_raw2.default.call(void 0, options.macros === true ? void 0 : options.macros)] : []
38
- ];
39
- };
40
- var raw_default = plugin;
41
-
42
-
43
-
44
- exports.raw_default = raw_default;