vue-jsx-vapor 2.3.0 → 2.3.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 (87) hide show
  1. package/dist/api.cjs +2 -5
  2. package/dist/api.d.cts +6 -7
  3. package/dist/api.d.ts +6 -7
  4. package/dist/api.js +3 -6
  5. package/dist/astro.cjs +14 -18
  6. package/dist/astro.d.cts +4 -5
  7. package/dist/astro.d.ts +4 -5
  8. package/dist/astro.js +13 -17
  9. package/dist/chunk-BCwAaXi7.cjs +31 -0
  10. package/dist/core-B29W1zp3.cjs +32 -0
  11. package/dist/core-BDE4GLH8.js +25 -0
  12. package/dist/esbuild.cjs +12 -14
  13. package/dist/esbuild.d.cts +6 -7
  14. package/dist/esbuild.d.ts +6 -7
  15. package/dist/esbuild.js +8 -10
  16. package/dist/index.cjs +66 -78
  17. package/dist/index.d.cts +4 -3
  18. package/dist/index.d.ts +4 -3
  19. package/dist/index.js +59 -80
  20. package/dist/jsx-runtime.cjs +14 -13
  21. package/dist/jsx-runtime.d.cts +24 -23
  22. package/dist/jsx-runtime.d.ts +24 -23
  23. package/dist/jsx-runtime.js +9 -13
  24. package/dist/nuxt.cjs +23 -26
  25. package/dist/nuxt.d.cts +6 -7
  26. package/dist/nuxt.d.ts +6 -7
  27. package/dist/nuxt.js +19 -23
  28. package/dist/options-HYvLzmlg.js +0 -0
  29. package/dist/options.cjs +1 -1
  30. package/dist/options.d-BAyccQwr.d.ts +20 -0
  31. package/dist/options.d-CA70vgwp.d.cts +20 -0
  32. package/dist/options.d.cts +2 -17
  33. package/dist/options.d.ts +2 -17
  34. package/dist/options.js +1 -1
  35. package/dist/raw-C8eD8f6a.js +214 -0
  36. package/dist/raw-Dr3UcxgN.cjs +221 -0
  37. package/dist/raw.cjs +4 -8
  38. package/dist/raw.d.cts +5 -6
  39. package/dist/raw.d.ts +5 -6
  40. package/dist/raw.js +4 -7
  41. package/dist/rolldown.cjs +14 -15
  42. package/dist/rolldown.d.cts +6 -7
  43. package/dist/rolldown.d.ts +6 -7
  44. package/dist/rolldown.js +9 -11
  45. package/dist/rollup.cjs +12 -14
  46. package/dist/rollup.d.cts +6 -7
  47. package/dist/rollup.d.ts +6 -7
  48. package/dist/rollup.js +8 -10
  49. package/dist/rspack.cjs +12 -14
  50. package/dist/rspack.d.cts +4 -5
  51. package/dist/rspack.d.ts +4 -5
  52. package/dist/rspack.js +8 -10
  53. package/dist/unplugin-BMMTjSOs.js +32 -0
  54. package/dist/unplugin-ChZxAtQ0.cjs +51 -0
  55. package/dist/unplugin.cjs +9 -13
  56. package/dist/unplugin.d.cts +6 -8
  57. package/dist/unplugin.d.ts +6 -8
  58. package/dist/unplugin.js +6 -13
  59. package/dist/vite-BSUI3W42.js +7 -0
  60. package/dist/vite-D_zoULH4.cjs +13 -0
  61. package/dist/vite.cjs +8 -12
  62. package/dist/vite.d.cts +6 -7
  63. package/dist/vite.d.ts +6 -7
  64. package/dist/vite.js +7 -10
  65. package/dist/volar.cjs +18 -18
  66. package/dist/volar.d.cts +5 -6
  67. package/dist/volar.d.ts +5 -6
  68. package/dist/volar.js +12 -13
  69. package/dist/webpack-BXmoWpIv.cjs +13 -0
  70. package/dist/webpack-CeYJ9dJv.js +7 -0
  71. package/dist/webpack.cjs +8 -12
  72. package/dist/webpack.d.cts +6 -7
  73. package/dist/webpack.d.ts +6 -7
  74. package/dist/webpack.js +7 -10
  75. package/package.json +9 -9
  76. package/dist/chunk-4HP6QVER.js +0 -10
  77. package/dist/chunk-F7CI4ATH.cjs +0 -43
  78. package/dist/chunk-G2KD2VHX.js +0 -43
  79. package/dist/chunk-GODVM7NB.cjs +0 -1
  80. package/dist/chunk-GY6DSRCV.cjs +0 -22
  81. package/dist/chunk-HNBQ42EP.js +0 -10
  82. package/dist/chunk-M4VKLZSB.cjs +0 -10
  83. package/dist/chunk-QBIU4H54.cjs +0 -10
  84. package/dist/chunk-SAJ6WS2A.js +0 -22
  85. package/dist/chunk-T3F6TYMY.js +0 -265
  86. package/dist/chunk-VSS2IZIS.cjs +0 -265
  87. /package/dist/{chunk-JNAGPWSX.js → options-CulFO0WS.cjs} +0 -0
package/dist/index.js CHANGED
@@ -1,92 +1,71 @@
1
- // src/core/runtime.ts
2
- import {
3
- effectScope,
4
- insert,
5
- isFragment,
6
- remove,
7
- renderEffect,
8
- VaporFragment
9
- } from "vue";
10
- import { shallowRef } from "vue";
1
+ import { VaporFragment, effectScope, insert, isFragment, remove, renderEffect, shallowRef as useRef } from "vue";
2
+
3
+ //#region src/core/runtime.ts
11
4
  function createFragment(nodes, anchor = document.createTextNode("")) {
12
- const frag = new VaporFragment(nodes);
13
- frag.anchor = anchor;
14
- return frag;
5
+ const frag = new VaporFragment(nodes);
6
+ frag.anchor = anchor;
7
+ return frag;
15
8
  }
16
9
  function normalizeValue(value, anchor) {
17
- if (value instanceof Node || isFragment(value)) {
18
- anchor && (anchor.textContent = "");
19
- return value;
20
- } else if (Array.isArray(value)) {
21
- anchor && (anchor.textContent = "");
22
- return createFragment(
23
- value.map((i) => normalizeValue(i)),
24
- anchor
25
- );
26
- } else {
27
- const result = value == null || typeof value === "boolean" ? "" : String(value);
28
- if (anchor) {
29
- anchor.textContent = result;
30
- return anchor;
31
- } else {
32
- return document.createTextNode(result);
33
- }
34
- }
10
+ if (value instanceof Node || isFragment(value)) {
11
+ anchor && (anchor.textContent = "");
12
+ return value;
13
+ } else if (Array.isArray(value)) {
14
+ anchor && (anchor.textContent = "");
15
+ return createFragment(value.map((i) => normalizeValue(i)), anchor);
16
+ } else {
17
+ const result = value == null || typeof value === "boolean" ? "" : String(value);
18
+ if (anchor) {
19
+ anchor.textContent = result;
20
+ return anchor;
21
+ } else return document.createTextNode(result);
22
+ }
35
23
  }
36
24
  function resolveValue(current, value, anchor) {
37
- const node = normalizeValue(value, anchor);
38
- if (current) {
39
- if (isFragment(current)) {
40
- const { anchor: anchor2 } = current;
41
- if (anchor2 && anchor2.parentNode) {
42
- remove(current.nodes, anchor2.parentNode);
43
- insert(node, anchor2.parentNode, anchor2);
44
- anchor2.remove();
45
- }
46
- } else if (current instanceof Node) {
47
- if (isFragment(node) && current.parentNode) {
48
- insert(node, current.parentNode, current);
49
- current.remove();
50
- } else if (node instanceof Node) {
51
- if (current.nodeType === 3 && node.nodeType === 3) {
52
- current.textContent = node.textContent;
53
- return current;
54
- } else if (current.parentNode) {
55
- current.parentNode.replaceChild(node, current);
56
- }
57
- }
58
- }
59
- }
60
- return node;
25
+ const node = normalizeValue(value, anchor);
26
+ if (current) {
27
+ if (isFragment(current)) {
28
+ const { anchor: anchor$1 } = current;
29
+ if (anchor$1 && anchor$1.parentNode) {
30
+ remove(current.nodes, anchor$1.parentNode);
31
+ insert(node, anchor$1.parentNode, anchor$1);
32
+ anchor$1.remove();
33
+ }
34
+ } else if (current instanceof Node) {
35
+ if (isFragment(node) && current.parentNode) {
36
+ insert(node, current.parentNode, current);
37
+ current.remove();
38
+ } else if (node instanceof Node) {
39
+ if (current.nodeType === 3 && node.nodeType === 3) {
40
+ current.textContent = node.textContent;
41
+ return current;
42
+ } else if (current.parentNode) current.parentNode.replaceChild(node, current);
43
+ }
44
+ }
45
+ }
46
+ return node;
61
47
  }
62
48
  function resolveValues(values = [], _anchor) {
63
- const nodes = [];
64
- const scopes = [];
65
- for (const [index, value] of values.entries()) {
66
- const anchor = index === values.length - 1 ? _anchor : void 0;
67
- if (typeof value === "function") {
68
- renderEffect(() => {
69
- if (scopes[index]) scopes[index].stop();
70
- scopes[index] = effectScope();
71
- nodes[index] = scopes[index].run(
72
- () => resolveValue(nodes[index], value(), anchor)
73
- );
74
- });
75
- } else {
76
- nodes[index] = resolveValue(nodes[index], value, anchor);
77
- }
78
- }
79
- return nodes;
49
+ const nodes = [];
50
+ const scopes = [];
51
+ for (const [index, value] of values.entries()) {
52
+ const anchor = index === values.length - 1 ? _anchor : void 0;
53
+ if (typeof value === "function") renderEffect(() => {
54
+ if (scopes[index]) scopes[index].stop();
55
+ scopes[index] = effectScope();
56
+ nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
57
+ });
58
+ else nodes[index] = resolveValue(nodes[index], value, anchor);
59
+ }
60
+ return nodes;
80
61
  }
81
62
  function setNodes(anchor, ...values) {
82
- const resolvedValues = resolveValues(values, anchor);
83
- anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);
63
+ const resolvedValues = resolveValues(values, anchor);
64
+ anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);
84
65
  }
85
66
  function createNodes(...values) {
86
- return resolveValues(values);
67
+ return resolveValues(values);
87
68
  }
88
- export {
89
- createNodes,
90
- setNodes,
91
- shallowRef as useRef
92
- };
69
+
70
+ //#endregion
71
+ export { createNodes, setNodes, useRef };
@@ -1,16 +1,17 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/jsx-runtime.ts
2
- var _vue = require('vue');
1
+ "use strict";
2
+ const require_chunk = require('./chunk-BCwAaXi7.cjs');
3
+ const vue = require_chunk.__toESM(require("vue"));
4
+
5
+ //#region src/jsx-runtime.ts
3
6
  function jsx(type, props, key) {
4
- const { children } = props;
5
- delete props.children;
6
- if (arguments.length > 2) {
7
- props.key = key;
8
- }
9
- return _vue.h.call(void 0, type, props, children);
7
+ const { children } = props;
8
+ delete props.children;
9
+ if (arguments.length > 2) props.key = key;
10
+ return (0, vue.h)(type, props, children);
10
11
  }
11
12
 
12
-
13
-
14
-
15
-
16
- exports.Fragment = _vue.Fragment; exports.jsx = jsx; exports.jsxDEV = jsx; exports.jsxs = jsx;
13
+ //#endregion
14
+ exports.Fragment = vue.Fragment
15
+ exports.jsx = jsx
16
+ exports.jsxDEV = jsx
17
+ exports.jsxs = jsx
@@ -1,8 +1,7 @@
1
- import * as vue from 'vue';
2
- import { h } from 'vue';
3
- export { Fragment } from 'vue';
4
- import * as CSS from 'csstype';
1
+ import { AllowedComponentProps, ComponentCustomProps, Fragment, ReservedProps, VNode, VNodeRef, h } from "vue";
2
+ import * as CSS from "csstype";
5
3
 
4
+ //#region src/jsx-runtime/dom.d.ts
6
5
  interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
7
6
  /**
8
7
  * The index signature was removed to enable closed typing for style
@@ -203,8 +202,8 @@ interface AriaAttributes {
203
202
  'aria-valuetext'?: string;
204
203
  }
205
204
  /**
206
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
207
- */
205
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
206
+ */
208
207
  type CrossOrigin = 'anonymous' | 'use-credentials' | '';
209
208
  type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
210
209
  interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, EventHandlers<Events<T>> {
@@ -1194,14 +1193,14 @@ interface Events<T = Element> {
1194
1193
  type EventHandlers<E> = {
1195
1194
  [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
1196
1195
  };
1197
- type ReservedProps$1 = {
1196
+ type ReservedProps$2 = {
1198
1197
  key?: PropertyKey;
1199
- ref?: vue.VNodeRef;
1198
+ ref?: VNodeRef;
1200
1199
  ref_for?: boolean;
1201
1200
  ref_key?: string;
1202
1201
  };
1203
1202
  type NativeElements = {
1204
- [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1;
1203
+ [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$2;
1205
1204
  };
1206
1205
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1207
1206
  nativeEvent: E;
@@ -1221,12 +1220,12 @@ interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1221
1220
  type: string;
1222
1221
  }
1223
1222
  /**
1224
- * currentTarget - a reference to the element on which the event listener is registered.
1225
- *
1226
- * target - a reference to the element from which the event was originally dispatched.
1227
- * This might be a child element to the element on which the event listener is registered.
1228
- * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1229
- */
1223
+ * currentTarget - a reference to the element on which the event listener is registered.
1224
+ *
1225
+ * target - a reference to the element from which the event was originally dispatched.
1226
+ * This might be a child element to the element on which the event listener is registered.
1227
+ * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1228
+ */
1230
1229
  interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {
1231
1230
  }
1232
1231
  type EventHandler<E extends SyntheticEvent<any>> = {
@@ -1334,15 +1333,16 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1334
1333
  }
1335
1334
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1336
1335
 
1336
+ //#endregion
1337
+ //#region src/jsx-runtime.d.ts
1337
1338
  declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
1338
-
1339
- type VNode = vue.VNode;
1340
- type ReservedProps = vue.ReservedProps;
1341
- type AllowedComponentProps = vue.AllowedComponentProps;
1342
- type ComponentCustomProps = vue.ComponentCustomProps;
1339
+ type VNode$1 = VNode;
1340
+ type ReservedProps$1 = ReservedProps;
1341
+ type AllowedComponentProps$1 = AllowedComponentProps;
1342
+ type ComponentCustomProps$1 = ComponentCustomProps;
1343
1343
  declare global {
1344
1344
  namespace JSX {
1345
- interface Element extends VNode {
1345
+ interface Element extends VNode$1 {
1346
1346
  }
1347
1347
  interface ElementClass {
1348
1348
  $props: {};
@@ -1353,9 +1353,10 @@ declare global {
1353
1353
  interface IntrinsicElements extends NativeElements {
1354
1354
  [name: string]: any;
1355
1355
  }
1356
- interface IntrinsicAttributes extends ReservedProps, AllowedComponentProps, ComponentCustomProps {
1356
+ interface IntrinsicAttributes extends ReservedProps$1, AllowedComponentProps$1, ComponentCustomProps$1 {
1357
1357
  }
1358
1358
  }
1359
1359
  }
1360
1360
 
1361
- export { jsx, jsx as jsxDEV, jsx as jsxs };
1361
+ //#endregion
1362
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
@@ -1,8 +1,7 @@
1
- import * as vue from 'vue';
2
- import { h } from 'vue';
3
- export { Fragment } from 'vue';
4
- import * as CSS from 'csstype';
1
+ import { AllowedComponentProps, ComponentCustomProps, Fragment, ReservedProps, VNode, VNodeRef, h } from "vue";
2
+ import * as CSS from "csstype";
5
3
 
4
+ //#region src/jsx-runtime/dom.d.ts
6
5
  interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
7
6
  /**
8
7
  * The index signature was removed to enable closed typing for style
@@ -203,8 +202,8 @@ interface AriaAttributes {
203
202
  'aria-valuetext'?: string;
204
203
  }
205
204
  /**
206
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
207
- */
205
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
206
+ */
208
207
  type CrossOrigin = 'anonymous' | 'use-credentials' | '';
209
208
  type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
210
209
  interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, EventHandlers<Events<T>> {
@@ -1194,14 +1193,14 @@ interface Events<T = Element> {
1194
1193
  type EventHandlers<E> = {
1195
1194
  [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
1196
1195
  };
1197
- type ReservedProps$1 = {
1196
+ type ReservedProps$2 = {
1198
1197
  key?: PropertyKey;
1199
- ref?: vue.VNodeRef;
1198
+ ref?: VNodeRef;
1200
1199
  ref_for?: boolean;
1201
1200
  ref_key?: string;
1202
1201
  };
1203
1202
  type NativeElements = {
1204
- [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1;
1203
+ [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$2;
1205
1204
  };
1206
1205
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1207
1206
  nativeEvent: E;
@@ -1221,12 +1220,12 @@ interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1221
1220
  type: string;
1222
1221
  }
1223
1222
  /**
1224
- * currentTarget - a reference to the element on which the event listener is registered.
1225
- *
1226
- * target - a reference to the element from which the event was originally dispatched.
1227
- * This might be a child element to the element on which the event listener is registered.
1228
- * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1229
- */
1223
+ * currentTarget - a reference to the element on which the event listener is registered.
1224
+ *
1225
+ * target - a reference to the element from which the event was originally dispatched.
1226
+ * This might be a child element to the element on which the event listener is registered.
1227
+ * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1228
+ */
1230
1229
  interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {
1231
1230
  }
1232
1231
  type EventHandler<E extends SyntheticEvent<any>> = {
@@ -1334,15 +1333,16 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1334
1333
  }
1335
1334
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1336
1335
 
1336
+ //#endregion
1337
+ //#region src/jsx-runtime.d.ts
1337
1338
  declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
1338
-
1339
- type VNode = vue.VNode;
1340
- type ReservedProps = vue.ReservedProps;
1341
- type AllowedComponentProps = vue.AllowedComponentProps;
1342
- type ComponentCustomProps = vue.ComponentCustomProps;
1339
+ type VNode$1 = VNode;
1340
+ type ReservedProps$1 = ReservedProps;
1341
+ type AllowedComponentProps$1 = AllowedComponentProps;
1342
+ type ComponentCustomProps$1 = ComponentCustomProps;
1343
1343
  declare global {
1344
1344
  namespace JSX {
1345
- interface Element extends VNode {
1345
+ interface Element extends VNode$1 {
1346
1346
  }
1347
1347
  interface ElementClass {
1348
1348
  $props: {};
@@ -1353,9 +1353,10 @@ declare global {
1353
1353
  interface IntrinsicElements extends NativeElements {
1354
1354
  [name: string]: any;
1355
1355
  }
1356
- interface IntrinsicAttributes extends ReservedProps, AllowedComponentProps, ComponentCustomProps {
1356
+ interface IntrinsicAttributes extends ReservedProps$1, AllowedComponentProps$1, ComponentCustomProps$1 {
1357
1357
  }
1358
1358
  }
1359
1359
  }
1360
1360
 
1361
- export { jsx, jsx as jsxDEV, jsx as jsxs };
1361
+ //#endregion
1362
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
@@ -1,16 +1,12 @@
1
- // src/jsx-runtime.ts
2
1
  import { Fragment, h } from "vue";
2
+
3
+ //#region src/jsx-runtime.ts
3
4
  function jsx(type, props, key) {
4
- const { children } = props;
5
- delete props.children;
6
- if (arguments.length > 2) {
7
- props.key = key;
8
- }
9
- return h(type, props, children);
5
+ const { children } = props;
6
+ delete props.children;
7
+ if (arguments.length > 2) props.key = key;
8
+ return h(type, props, children);
10
9
  }
11
- export {
12
- Fragment,
13
- jsx,
14
- jsx as jsxDEV,
15
- jsx as jsxs
16
- };
10
+
11
+ //#endregion
12
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
package/dist/nuxt.cjs CHANGED
@@ -1,29 +1,26 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
1
+ "use strict";
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ const require_chunk = require('./chunk-BCwAaXi7.cjs');
4
+ require('./core-B29W1zp3.cjs');
5
+ require('./raw-Dr3UcxgN.cjs');
6
+ require('./options-CulFO0WS.cjs');
7
+ require('./unplugin-ChZxAtQ0.cjs');
8
+ const require_vite = require('./vite-D_zoULH4.cjs');
9
+ const require_webpack = require('./webpack-BXmoWpIv.cjs');
10
+ const __nuxt_kit = require_chunk.__toESM(require("@nuxt/kit"));
11
+ require("@nuxt/schema");
2
12
 
3
- var _chunkM4VKLZSBcjs = require('./chunk-M4VKLZSB.cjs');
4
-
5
-
6
- var _chunkQBIU4H54cjs = require('./chunk-QBIU4H54.cjs');
7
- require('./chunk-F7CI4ATH.cjs');
8
- require('./chunk-GODVM7NB.cjs');
9
- require('./chunk-VSS2IZIS.cjs');
10
- require('./chunk-GY6DSRCV.cjs');
11
-
12
- // src/nuxt.ts
13
- var _kit = require('@nuxt/kit');
14
- require('@nuxt/schema');
15
- var nuxt_default = _kit.defineNuxtModule.call(void 0, {
16
- meta: {
17
- name: "nuxt-vue-jsx-vapor",
18
- configKey: "unpluginStarter"
19
- },
20
- setup(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
- }
13
+ //#region src/nuxt.ts
14
+ var nuxt_default = (0, __nuxt_kit.defineNuxtModule)({
15
+ meta: {
16
+ name: "nuxt-vue-jsx-vapor",
17
+ configKey: "unpluginStarter"
18
+ },
19
+ setup(options) {
20
+ (0, __nuxt_kit.addVitePlugin)(() => require_vite.vite_default(options));
21
+ (0, __nuxt_kit.addWebpackPlugin)(() => require_webpack.webpack_default(options));
22
+ }
24
23
  });
25
24
 
26
-
27
- exports.default = nuxt_default;
28
-
29
- module.exports = exports.default;
25
+ //#endregion
26
+ exports.default = nuxt_default
package/dist/nuxt.d.cts CHANGED
@@ -1,11 +1,10 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { Options } from './options.cjs';
3
- import '@vue-jsx-vapor/compiler';
4
- import '@vue-jsx-vapor/macros';
5
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-CA70vgwp.cjs";
2
+ import { NuxtModule } from "@nuxt/schema";
6
3
 
4
+ //#region src/nuxt.d.ts
7
5
  interface ModuleOptions extends Options {
8
6
  }
9
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
+ declare const _default: NuxtModule<ModuleOptions, ModuleOptions, false>;
10
8
 
11
- export { type ModuleOptions, _default as default };
9
+ //#endregion
10
+ export { ModuleOptions, _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { Options } from './options.js';
3
- import '@vue-jsx-vapor/compiler';
4
- import '@vue-jsx-vapor/macros';
5
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-BAyccQwr.js";
2
+ import { NuxtModule } from "@nuxt/schema";
6
3
 
4
+ //#region src/nuxt.d.ts
7
5
  interface ModuleOptions extends Options {
8
6
  }
9
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
+ declare const _default: NuxtModule<ModuleOptions, ModuleOptions, false>;
10
8
 
11
- export { type ModuleOptions, _default as default };
9
+ //#endregion
10
+ export { ModuleOptions, _default as default };
package/dist/nuxt.js CHANGED
@@ -1,27 +1,23 @@
1
- import {
2
- vite_default
3
- } from "./chunk-HNBQ42EP.js";
4
- import {
5
- webpack_default
6
- } from "./chunk-4HP6QVER.js";
7
- import "./chunk-G2KD2VHX.js";
8
- import "./chunk-JNAGPWSX.js";
9
- import "./chunk-T3F6TYMY.js";
10
- import "./chunk-SAJ6WS2A.js";
11
-
12
- // src/nuxt.ts
1
+ import "./core-BDE4GLH8.js";
2
+ import "./raw-C8eD8f6a.js";
3
+ import "./options-HYvLzmlg.js";
4
+ import "./unplugin-BMMTjSOs.js";
5
+ import { vite_default } from "./vite-BSUI3W42.js";
6
+ import { webpack_default } from "./webpack-CeYJ9dJv.js";
13
7
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
14
8
  import "@nuxt/schema";
9
+
10
+ //#region src/nuxt.ts
15
11
  var nuxt_default = defineNuxtModule({
16
- meta: {
17
- name: "nuxt-vue-jsx-vapor",
18
- configKey: "unpluginStarter"
19
- },
20
- setup(options) {
21
- addVitePlugin(() => vite_default(options));
22
- addWebpackPlugin(() => webpack_default(options));
23
- }
12
+ meta: {
13
+ name: "nuxt-vue-jsx-vapor",
14
+ configKey: "unpluginStarter"
15
+ },
16
+ setup(options) {
17
+ addVitePlugin(() => vite_default(options));
18
+ addWebpackPlugin(() => webpack_default(options));
19
+ }
24
20
  });
25
- export {
26
- nuxt_default as default
27
- };
21
+
22
+ //#endregion
23
+ export { nuxt_default as default };
File without changes
package/dist/options.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";require('./chunk-GODVM7NB.cjs');
1
+ require('./options-CulFO0WS.cjs');
@@ -0,0 +1,20 @@
1
+ import { FilterPattern } from "unplugin-utils";
2
+ import { CompilerOptions } from "@vue-jsx-vapor/compiler";
3
+ import { Options } from "@vue-jsx-vapor/macros";
4
+
5
+ //#region src/options.d.ts
6
+ interface Options$1 {
7
+ include?: FilterPattern;
8
+ exclude?: FilterPattern;
9
+ interop?: boolean;
10
+ compile?: CompilerOptions;
11
+ /** @default true */
12
+ ref?: {
13
+ alias?: string[];
14
+ } | boolean;
15
+ /** @default false */
16
+ macros?: Options | boolean;
17
+ }
18
+
19
+ //#endregion
20
+ export { Options$1 as Options };
@@ -0,0 +1,20 @@
1
+ import { CompilerOptions } from "@vue-jsx-vapor/compiler";
2
+ import { Options } from "@vue-jsx-vapor/macros";
3
+ import { FilterPattern } from "unplugin-utils";
4
+
5
+ //#region src/options.d.ts
6
+ interface Options$1 {
7
+ include?: FilterPattern;
8
+ exclude?: FilterPattern;
9
+ interop?: boolean;
10
+ compile?: CompilerOptions;
11
+ /** @default true */
12
+ ref?: {
13
+ alias?: string[];
14
+ } | boolean;
15
+ /** @default false */
16
+ macros?: Options | boolean;
17
+ }
18
+
19
+ //#endregion
20
+ export { Options$1 as Options };
@@ -1,18 +1,3 @@
1
- import { CompilerOptions } from '@vue-jsx-vapor/compiler';
2
- import { Options as Options$1 } from '@vue-jsx-vapor/macros';
3
- import { FilterPattern } from 'unplugin-utils';
1
+ import { Options } from "./options.d-CA70vgwp.cjs";
4
2
 
5
- interface Options {
6
- include?: FilterPattern;
7
- exclude?: FilterPattern;
8
- interop?: boolean;
9
- compile?: CompilerOptions;
10
- /** @default true */
11
- ref?: {
12
- alias?: string[];
13
- } | boolean;
14
- /** @default false */
15
- macros?: Options$1 | boolean;
16
- }
17
-
18
- export type { Options };
3
+ export { Options };
package/dist/options.d.ts CHANGED
@@ -1,18 +1,3 @@
1
- import { CompilerOptions } from '@vue-jsx-vapor/compiler';
2
- import { Options as Options$1 } from '@vue-jsx-vapor/macros';
3
- import { FilterPattern } from 'unplugin-utils';
1
+ import { Options } from "./options.d-BAyccQwr.js";
4
2
 
5
- interface Options {
6
- include?: FilterPattern;
7
- exclude?: FilterPattern;
8
- interop?: boolean;
9
- compile?: CompilerOptions;
10
- /** @default true */
11
- ref?: {
12
- alias?: string[];
13
- } | boolean;
14
- /** @default false */
15
- macros?: Options$1 | boolean;
16
- }
17
-
18
- export type { Options };
3
+ export { Options };
package/dist/options.js CHANGED
@@ -1 +1 @@
1
- import "./chunk-JNAGPWSX.js";
1
+ import "./options-HYvLzmlg.js";