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/rollup.js CHANGED
@@ -1,12 +1,10 @@
1
- import {
2
- unplugin_default
3
- } from "./chunk-G2KD2VHX.js";
4
- import "./chunk-JNAGPWSX.js";
5
- import "./chunk-T3F6TYMY.js";
6
- import "./chunk-SAJ6WS2A.js";
1
+ import "./core-BDE4GLH8.js";
2
+ import "./raw-C8eD8f6a.js";
3
+ import "./options-HYvLzmlg.js";
4
+ import { unplugin_default } from "./unplugin-BMMTjSOs.js";
7
5
 
8
- // src/rollup.ts
6
+ //#region src/rollup.ts
9
7
  var rollup_default = unplugin_default.rollup;
10
- export {
11
- rollup_default as default
12
- };
8
+
9
+ //#endregion
10
+ export { rollup_default as default };
package/dist/rspack.cjs CHANGED
@@ -1,14 +1,12 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
4
- require('./chunk-GODVM7NB.cjs');
5
- require('./chunk-VSS2IZIS.cjs');
6
- require('./chunk-GY6DSRCV.cjs');
7
-
8
- // src/rspack.ts
9
- var rspack_default = _chunkF7CI4ATHcjs.unplugin_default.rspack;
10
-
11
-
12
- exports.default = rspack_default;
13
-
14
- module.exports = exports.default;
1
+ "use strict";
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ require('./core-B29W1zp3.cjs');
4
+ require('./raw-Dr3UcxgN.cjs');
5
+ require('./options-CulFO0WS.cjs');
6
+ const require_unplugin = require('./unplugin-ChZxAtQ0.cjs');
7
+
8
+ //#region src/rspack.ts
9
+ var rspack_default = require_unplugin.unplugin_default.rspack;
10
+
11
+ //#endregion
12
+ exports.default = rspack_default
package/dist/rspack.d.cts CHANGED
@@ -1,8 +1,7 @@
1
- import { Options } from './options.cjs';
2
- import '@vue-jsx-vapor/compiler';
3
- import '@vue-jsx-vapor/macros';
4
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-CA70vgwp.cjs";
5
2
 
3
+ //#region src/rspack.d.ts
6
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
7
5
 
8
- export = _default;
6
+ //#endregion
7
+ export { _default as default };
package/dist/rspack.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { Options } from './options.js';
2
- import '@vue-jsx-vapor/compiler';
3
- import '@vue-jsx-vapor/macros';
4
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-BAyccQwr.js";
5
2
 
3
+ //#region src/rspack.d.ts
6
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
7
5
 
8
- export { _default as default };
6
+ //#endregion
7
+ export { _default as default };
package/dist/rspack.js CHANGED
@@ -1,12 +1,10 @@
1
- import {
2
- unplugin_default
3
- } from "./chunk-G2KD2VHX.js";
4
- import "./chunk-JNAGPWSX.js";
5
- import "./chunk-T3F6TYMY.js";
6
- import "./chunk-SAJ6WS2A.js";
1
+ import "./core-BDE4GLH8.js";
2
+ import "./raw-C8eD8f6a.js";
3
+ import "./options-HYvLzmlg.js";
4
+ import { unplugin_default } from "./unplugin-BMMTjSOs.js";
7
5
 
8
- // src/rspack.ts
6
+ //#region src/rspack.ts
9
7
  var rspack_default = unplugin_default.rspack;
10
- export {
11
- rspack_default as default
12
- };
8
+
9
+ //#endregion
10
+ export { rspack_default as default };
@@ -0,0 +1,32 @@
1
+ import { raw_default } from "./raw-C8eD8f6a.js";
2
+ import { createUnplugin } from "unplugin";
3
+ import { createFilter, transformWithEsbuild } from "vite";
4
+
5
+ //#region src/unplugin.ts
6
+ const unpluginFactory = (options = {}) => {
7
+ return [...raw_default(options), options.interop ? { name: "interop" } : {
8
+ name: "unplugin-esbuild",
9
+ transformInclude: createFilter(options?.include || /\.[jt]sx$/, options?.exclude),
10
+ transform(code, id) {
11
+ return transformWithEsbuild(code, id, {
12
+ target: "esnext",
13
+ charset: "utf8",
14
+ minify: false,
15
+ minifyIdentifiers: false,
16
+ minifySyntax: false,
17
+ minifyWhitespace: false,
18
+ treeShaking: false,
19
+ keepNames: false,
20
+ supported: {
21
+ "dynamic-import": true,
22
+ "import-meta": true
23
+ }
24
+ });
25
+ }
26
+ }];
27
+ };
28
+ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
29
+ var unplugin_default = unplugin;
30
+
31
+ //#endregion
32
+ export { unplugin, unpluginFactory, unplugin_default };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ const require_chunk = require('./chunk-BCwAaXi7.cjs');
3
+ const require_raw = require('./raw-Dr3UcxgN.cjs');
4
+ const unplugin = require_chunk.__toESM(require("unplugin"));
5
+ const vite = require_chunk.__toESM(require("vite"));
6
+
7
+ //#region src/unplugin.ts
8
+ const unpluginFactory = (options = {}) => {
9
+ return [...require_raw.raw_default(options), options.interop ? { name: "interop" } : {
10
+ name: "unplugin-esbuild",
11
+ transformInclude: (0, vite.createFilter)(options?.include || /\.[jt]sx$/, options?.exclude),
12
+ transform(code, id) {
13
+ return (0, vite.transformWithEsbuild)(code, id, {
14
+ target: "esnext",
15
+ charset: "utf8",
16
+ minify: false,
17
+ minifyIdentifiers: false,
18
+ minifySyntax: false,
19
+ minifyWhitespace: false,
20
+ treeShaking: false,
21
+ keepNames: false,
22
+ supported: {
23
+ "dynamic-import": true,
24
+ "import-meta": true
25
+ }
26
+ });
27
+ }
28
+ }];
29
+ };
30
+ const unplugin$1 = /* @__PURE__ */ (0, unplugin.createUnplugin)(unpluginFactory);
31
+ var unplugin_default = unplugin$1;
32
+
33
+ //#endregion
34
+ Object.defineProperty(exports, 'unplugin', {
35
+ enumerable: true,
36
+ get: function () {
37
+ return unplugin$1;
38
+ }
39
+ });
40
+ Object.defineProperty(exports, 'unpluginFactory', {
41
+ enumerable: true,
42
+ get: function () {
43
+ return unpluginFactory;
44
+ }
45
+ });
46
+ Object.defineProperty(exports, 'unplugin_default', {
47
+ enumerable: true,
48
+ get: function () {
49
+ return unplugin_default;
50
+ }
51
+ });
package/dist/unplugin.cjs CHANGED
@@ -1,13 +1,9 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkF7CI4ATHcjs = require('./chunk-F7CI4ATH.cjs');
6
- require('./chunk-GODVM7NB.cjs');
7
- require('./chunk-VSS2IZIS.cjs');
8
- require('./chunk-GY6DSRCV.cjs');
9
-
10
-
11
-
12
-
13
- exports.default = _chunkF7CI4ATHcjs.unplugin_default; exports.unplugin = _chunkF7CI4ATHcjs.unplugin; exports.unpluginFactory = _chunkF7CI4ATHcjs.unpluginFactory;
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ require('./core-B29W1zp3.cjs');
3
+ require('./raw-Dr3UcxgN.cjs');
4
+ require('./options-CulFO0WS.cjs');
5
+ const require_unplugin = require('./unplugin-ChZxAtQ0.cjs');
6
+
7
+ exports.default = require_unplugin.unplugin_default
8
+ exports.unplugin = require_unplugin.unplugin
9
+ exports.unpluginFactory = require_unplugin.unpluginFactory
@@ -1,11 +1,9 @@
1
- import * as _unplugin from 'unplugin';
2
- import { UnpluginFactory } from 'unplugin';
3
- import { Options } from './options.cjs';
4
- import '@vue-jsx-vapor/compiler';
5
- import '@vue-jsx-vapor/macros';
6
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-CA70vgwp.cjs";
2
+ import { UnpluginFactory, UnpluginInstance } from "unplugin";
7
3
 
4
+ //#region src/unplugin.d.ts
8
5
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
9
- declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, true>;
6
+ declare const unplugin: UnpluginInstance<Options | undefined, true>;
10
7
 
11
- export { Options, unplugin as default, unplugin, unpluginFactory };
8
+ //#endregion
9
+ export { Options, unplugin as default, unplugin, unpluginFactory };
@@ -1,11 +1,9 @@
1
- import * as _unplugin from 'unplugin';
2
- import { UnpluginFactory } from 'unplugin';
3
- import { Options } from './options.js';
4
- import '@vue-jsx-vapor/compiler';
5
- import '@vue-jsx-vapor/macros';
6
- import 'unplugin-utils';
1
+ import { Options } from "./options.d-BAyccQwr.js";
2
+ import { UnpluginFactory, UnpluginInstance } from "unplugin";
7
3
 
4
+ //#region src/unplugin.d.ts
8
5
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
9
- declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, true>;
6
+ declare const unplugin: UnpluginInstance<Options | undefined, true>;
10
7
 
11
- export { Options, unplugin as default, unplugin, unpluginFactory };
8
+ //#endregion
9
+ export { Options, unplugin as default, unplugin, unpluginFactory };
package/dist/unplugin.js CHANGED
@@ -1,13 +1,6 @@
1
- import {
2
- unplugin,
3
- unpluginFactory,
4
- unplugin_default
5
- } from "./chunk-G2KD2VHX.js";
6
- import "./chunk-JNAGPWSX.js";
7
- import "./chunk-T3F6TYMY.js";
8
- import "./chunk-SAJ6WS2A.js";
9
- export {
10
- unplugin_default as default,
11
- unplugin,
12
- unpluginFactory
13
- };
1
+ import "./core-BDE4GLH8.js";
2
+ import "./raw-C8eD8f6a.js";
3
+ import "./options-HYvLzmlg.js";
4
+ import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-BMMTjSOs.js";
5
+
6
+ export { unplugin_default as default, unplugin, unpluginFactory };
@@ -0,0 +1,7 @@
1
+ import { unplugin_default } from "./unplugin-BMMTjSOs.js";
2
+
3
+ //#region src/vite.ts
4
+ var vite_default = unplugin_default.vite;
5
+
6
+ //#endregion
7
+ export { vite_default };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const require_unplugin = require('./unplugin-ChZxAtQ0.cjs');
3
+
4
+ //#region src/vite.ts
5
+ var vite_default = require_unplugin.unplugin_default.vite;
6
+
7
+ //#endregion
8
+ Object.defineProperty(exports, 'vite_default', {
9
+ enumerable: true,
10
+ get: function () {
11
+ return vite_default;
12
+ }
13
+ });
package/dist/vite.cjs CHANGED
@@ -1,12 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkM4VKLZSBcjs = require('./chunk-M4VKLZSB.cjs');
4
- require('./chunk-F7CI4ATH.cjs');
5
- require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-VSS2IZIS.cjs');
7
- require('./chunk-GY6DSRCV.cjs');
8
-
9
-
10
- exports.default = _chunkM4VKLZSBcjs.vite_default;
11
-
12
- module.exports = exports.default;
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ require('./core-B29W1zp3.cjs');
3
+ require('./raw-Dr3UcxgN.cjs');
4
+ require('./options-CulFO0WS.cjs');
5
+ require('./unplugin-ChZxAtQ0.cjs');
6
+ const require_vite = require('./vite-D_zoULH4.cjs');
7
+
8
+ exports.default = require_vite.vite_default
package/dist/vite.d.cts CHANGED
@@ -1,9 +1,8 @@
1
- import * as vite from 'vite';
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 { Plugin } from "vite";
6
3
 
7
- declare const _default: (options?: Options | undefined) => vite.Plugin<any>[];
4
+ //#region src/vite.d.ts
5
+ declare const _default: (options?: Options | undefined) => Plugin<any>[];
8
6
 
9
- export = _default;
7
+ //#endregion
8
+ export { _default as default };
package/dist/vite.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import * as vite from 'vite';
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 { Plugin } from "vite";
6
3
 
7
- declare const _default: (options?: Options | undefined) => vite.Plugin<any>[];
4
+ //#region src/vite.d.ts
5
+ declare const _default: (options?: Options | undefined) => Plugin<any>[];
8
6
 
9
- export { _default as default };
7
+ //#endregion
8
+ export { _default as default };
package/dist/vite.js CHANGED
@@ -1,10 +1,7 @@
1
- import {
2
- vite_default
3
- } from "./chunk-HNBQ42EP.js";
4
- import "./chunk-G2KD2VHX.js";
5
- import "./chunk-JNAGPWSX.js";
6
- import "./chunk-T3F6TYMY.js";
7
- import "./chunk-SAJ6WS2A.js";
8
- export {
9
- vite_default as default
10
- };
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
+
7
+ export { vite_default as default };
package/dist/volar.cjs CHANGED
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// src/volar.ts
2
- var _volar = require('@vue-jsx-vapor/macros/volar'); var _volar2 = _interopRequireDefault(_volar);
3
- var _jsxdirective = require('@vue-macros/volar/jsx-directive'); var _jsxdirective2 = _interopRequireDefault(_jsxdirective);
4
- var _jsxref = require('@vue-macros/volar/jsx-ref'); var _jsxref2 = _interopRequireDefault(_jsxref);
5
- var _tsmacro = require('ts-macro');
6
- var plugin = _tsmacro.createPlugin.call(void 0,
7
- (ctx, options) => {
8
- return [
9
- _jsxdirective2.default.call(void 0, )(ctx),
10
- _optionalChain([options, 'optionalAccess', _ => _.ref]) === false ? [] : _jsxref2.default.call(void 0, _optionalChain([options, 'optionalAccess', _2 => _2.ref]) === true ? void 0 : _optionalChain([options, 'optionalAccess', _3 => _3.ref]))(ctx),
11
- _optionalChain([options, 'optionalAccess', _4 => _4.macros]) === false ? [] : _optionalChain([options, 'optionalAccess', _5 => _5.macros]) ? _volar2.default.call(void 0, options.macros ? void 0 : options.macros)(ctx) : []
12
- ].flat();
13
- }
14
- );
15
- var volar_default = plugin;
16
-
1
+ "use strict";
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ const require_chunk = require('./chunk-BCwAaXi7.cjs');
4
+ const __vue_jsx_vapor_macros_volar = require_chunk.__toESM(require("@vue-jsx-vapor/macros/volar"));
5
+ const __vue_macros_volar_jsx_directive = require_chunk.__toESM(require("@vue-macros/volar/jsx-directive"));
6
+ const __vue_macros_volar_jsx_ref = require_chunk.__toESM(require("@vue-macros/volar/jsx-ref"));
7
+ const ts_macro = require_chunk.__toESM(require("ts-macro"));
17
8
 
18
- exports.default = volar_default;
9
+ //#region src/volar.ts
10
+ const plugin = (0, ts_macro.createPlugin)((ctx, options) => {
11
+ return [
12
+ (0, __vue_macros_volar_jsx_directive.default)()(ctx),
13
+ options?.ref === false ? [] : (0, __vue_macros_volar_jsx_ref.default)(options?.ref === true ? void 0 : options?.ref)(ctx),
14
+ options?.macros === false ? [] : options?.macros ? (0, __vue_jsx_vapor_macros_volar.default)(options.macros ? void 0 : options.macros)(ctx) : []
15
+ ].flat();
16
+ });
17
+ var volar_default = plugin;
19
18
 
20
- module.exports = exports.default;
19
+ //#endregion
20
+ exports.default = volar_default
package/dist/volar.d.cts CHANGED
@@ -1,9 +1,8 @@
1
- import { PluginReturn } from 'ts-macro';
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 { PluginReturn } from "ts-macro";
6
3
 
4
+ //#region src/volar.d.ts
7
5
  declare const plugin: PluginReturn<Options | undefined, true>;
8
6
 
9
- export = plugin;
7
+ //#endregion
8
+ export { plugin as default };
package/dist/volar.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { PluginReturn } from 'ts-macro';
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 { PluginReturn } from "ts-macro";
6
3
 
4
+ //#region src/volar.d.ts
7
5
  declare const plugin: PluginReturn<Options | undefined, true>;
8
6
 
9
- export { plugin as default };
7
+ //#endregion
8
+ export { plugin as default };
package/dist/volar.js CHANGED
@@ -1,18 +1,17 @@
1
- // src/volar.ts
2
1
  import jsxMacros from "@vue-jsx-vapor/macros/volar";
3
2
  import jsxDirective from "@vue-macros/volar/jsx-directive";
4
3
  import jsxRef from "@vue-macros/volar/jsx-ref";
5
4
  import { createPlugin } from "ts-macro";
6
- var plugin = createPlugin(
7
- (ctx, options) => {
8
- return [
9
- jsxDirective()(ctx),
10
- options?.ref === false ? [] : jsxRef(options?.ref === true ? void 0 : options?.ref)(ctx),
11
- options?.macros === false ? [] : options?.macros ? jsxMacros(options.macros ? void 0 : options.macros)(ctx) : []
12
- ].flat();
13
- }
14
- );
5
+
6
+ //#region src/volar.ts
7
+ const plugin = createPlugin((ctx, options) => {
8
+ return [
9
+ jsxDirective()(ctx),
10
+ options?.ref === false ? [] : jsxRef(options?.ref === true ? void 0 : options?.ref)(ctx),
11
+ options?.macros === false ? [] : options?.macros ? jsxMacros(options.macros ? void 0 : options.macros)(ctx) : []
12
+ ].flat();
13
+ });
15
14
  var volar_default = plugin;
16
- export {
17
- volar_default as default
18
- };
15
+
16
+ //#endregion
17
+ export { volar_default as default };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const require_unplugin = require('./unplugin-ChZxAtQ0.cjs');
3
+
4
+ //#region src/webpack.ts
5
+ var webpack_default = require_unplugin.unplugin_default.webpack;
6
+
7
+ //#endregion
8
+ Object.defineProperty(exports, 'webpack_default', {
9
+ enumerable: true,
10
+ get: function () {
11
+ return webpack_default;
12
+ }
13
+ });
@@ -0,0 +1,7 @@
1
+ import { unplugin_default } from "./unplugin-BMMTjSOs.js";
2
+
3
+ //#region src/webpack.ts
4
+ var webpack_default = unplugin_default.webpack;
5
+
6
+ //#endregion
7
+ export { webpack_default };
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkQBIU4H54cjs = require('./chunk-QBIU4H54.cjs');
4
- require('./chunk-F7CI4ATH.cjs');
5
- require('./chunk-GODVM7NB.cjs');
6
- require('./chunk-VSS2IZIS.cjs');
7
- require('./chunk-GY6DSRCV.cjs');
8
-
9
-
10
- exports.default = _chunkQBIU4H54cjs.webpack_default;
11
-
12
- module.exports = exports.default;
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ require('./core-B29W1zp3.cjs');
3
+ require('./raw-Dr3UcxgN.cjs');
4
+ require('./options-CulFO0WS.cjs');
5
+ require('./unplugin-ChZxAtQ0.cjs');
6
+ const require_webpack = require('./webpack-BXmoWpIv.cjs');
7
+
8
+ exports.default = require_webpack.webpack_default
@@ -1,9 +1,8 @@
1
- import * as webpack from 'webpack';
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 { WebpackPluginInstance } from "webpack";
6
3
 
7
- declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
4
+ //#region src/webpack.d.ts
5
+ declare const _default: (options?: Options | undefined) => WebpackPluginInstance;
8
6
 
9
- export = _default;
7
+ //#endregion
8
+ export { _default as default };
package/dist/webpack.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import * as webpack from 'webpack';
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 { WebpackPluginInstance } from "webpack";
6
3
 
7
- declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
4
+ //#region src/webpack.d.ts
5
+ declare const _default: (options?: Options | undefined) => WebpackPluginInstance;
8
6
 
9
- export { _default as default };
7
+ //#endregion
8
+ export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,10 +1,7 @@
1
- import {
2
- webpack_default
3
- } from "./chunk-4HP6QVER.js";
4
- import "./chunk-G2KD2VHX.js";
5
- import "./chunk-JNAGPWSX.js";
6
- import "./chunk-T3F6TYMY.js";
7
- import "./chunk-SAJ6WS2A.js";
8
- export {
9
- webpack_default as default
10
- };
1
+ import "./core-BDE4GLH8.js";
2
+ import "./raw-C8eD8f6a.js";
3
+ import "./options-HYvLzmlg.js";
4
+ import "./unplugin-BMMTjSOs.js";
5
+ import { webpack_default } from "./webpack-CeYJ9dJv.js";
6
+
7
+ export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -209,28 +209,28 @@
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",
213
- "@vue-macros/volar": "^3.0.0-beta.7",
212
+ "@vue-macros/jsx-directive": "^3.0.0-beta.10",
213
+ "@vue-macros/volar": "^3.0.0-beta.10",
214
214
  "@vue/babel-plugin-jsx": "^1.4.0",
215
215
  "hash-sum": "^2.0.0",
216
216
  "pathe": "^2.0.3",
217
217
  "ts-macro": "^0.1.25",
218
218
  "unplugin": "^2.2.2",
219
219
  "unplugin-utils": "^0.2.4",
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
+ "@vue-jsx-vapor/babel": "2.3.2",
221
+ "@vue-jsx-vapor/compiler": "2.3.2",
222
+ "@vue-jsx-vapor/macros": "2.3.2"
223
223
  },
224
224
  "devDependencies": {
225
225
  "@nuxt/kit": "^3.16.0",
226
226
  "@nuxt/schema": "^3.16.0",
227
227
  "@types/babel__core": "^7.20.5",
228
228
  "csstype": "^3.1.3",
229
- "vue": "https://pkg.pr.new/vue@b43f4f5"
229
+ "vue": "https://pkg.pr.new/vue@42f38ca"
230
230
  },
231
231
  "scripts": {
232
- "build": "tsup",
233
- "dev": "DEV=true tsup",
232
+ "build": "tsdown",
233
+ "dev": "DEV=true tsdown",
234
234
  "lint": "eslint .",
235
235
  "play": "npm -C playground run dev",
236
236
  "release": "bumpp && npm publish",
@@ -1,10 +0,0 @@
1
- import {
2
- unplugin_default
3
- } from "./chunk-G2KD2VHX.js";
4
-
5
- // src/webpack.ts
6
- var webpack_default = unplugin_default.webpack;
7
-
8
- export {
9
- webpack_default
10
- };