vue-jsx-vapor 3.2.21 → 3.3.0-beta.1
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.d.ts +2 -2
- package/dist/api.js +2 -3
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +1 -4
- package/dist/bun.d.ts +1 -1
- package/dist/bun.js +1 -4
- package/dist/{core-F-TBUTIG.js → core-PEhKTzzv.js} +2 -4
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +1 -4
- package/dist/index-DqayCbog.d.ts +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -3
- package/dist/nuxt.d.ts +3 -3
- package/dist/nuxt.js +1 -4
- package/dist/{options-BGVfa0WB.d.cts → options-B8dfdYK8.d.ts} +2 -2
- package/dist/raw.d.ts +1 -1
- package/dist/raw.js +4 -6
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +1 -4
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +1 -4
- package/dist/rsbuild.d.ts +2 -1
- package/dist/rsbuild.js +1 -4
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +1 -4
- package/dist/unplugin.d.ts +3 -2
- package/dist/unplugin.js +1 -4
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +1 -4
- package/dist/volar.d.ts +1 -1
- package/dist/volar.js +7 -14
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +1 -4
- package/package.json +24 -107
- package/dist/api.cjs +0 -4
- package/dist/api.d.cts +0 -3
- package/dist/astro.cjs +0 -15
- package/dist/astro.d.cts +0 -10
- package/dist/bun.cjs +0 -9
- package/dist/bun.d.cts +0 -5
- package/dist/chunk-C0xms8kb.cjs +0 -34
- package/dist/core-CM75Ciyx.cjs +0 -22
- package/dist/esbuild.cjs +0 -9
- package/dist/esbuild.d.cts +0 -6
- package/dist/index-C3myqMEa.d.cts +0 -7
- package/dist/index-tJRhRcrS.d.ts +0 -7
- package/dist/index.cjs +0 -10
- package/dist/index.d.cts +0 -1
- package/dist/nuxt.cjs +0 -22
- package/dist/nuxt.d.cts +0 -8
- package/dist/options-CJzUa6Vm.d.ts +0 -21
- package/dist/raw.cjs +0 -63
- package/dist/raw.d.cts +0 -6
- package/dist/rolldown.cjs +0 -11
- package/dist/rolldown.d.cts +0 -6
- package/dist/rollup.cjs +0 -9
- package/dist/rollup.d.cts +0 -6
- package/dist/rsbuild.cjs +0 -16
- package/dist/rsbuild.d.cts +0 -8
- package/dist/rspack.cjs +0 -9
- package/dist/rspack.d.cts +0 -5
- package/dist/unplugin.cjs +0 -16
- package/dist/unplugin.d.cts +0 -8
- package/dist/vite.cjs +0 -9
- package/dist/vite.d.cts +0 -6
- package/dist/volar.cjs +0 -824
- package/dist/volar.d.cts +0 -7
- package/dist/webpack.cjs +0 -9
- package/dist/webpack.d.cts +0 -6
- package/jsx-runtime/vdom.d.ts +0 -10
- package/jsx-runtime/vdom.js +0 -11
- /package/jsx-runtime/{vapor.d.ts → index.d.ts} +0 -0
- /package/jsx-runtime/{vapor.js → index.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import { t as transformVueJsxVapor } from "./index-
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import { t as transformVueJsxVapor } from "./index-DqayCbog.js";
|
|
3
3
|
export { Options, transformVueJsxVapor };
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as transformVueJsxVapor } from "./core-
|
|
2
|
-
|
|
3
|
-
export { transformVueJsxVapor };
|
|
1
|
+
import { t as transformVueJsxVapor } from "./core-PEhKTzzv.js";
|
|
2
|
+
export { transformVueJsxVapor };
|
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
1
|
import unplugin from "./unplugin.js";
|
|
3
|
-
|
|
4
2
|
//#region src/astro.ts
|
|
5
3
|
var astro_default = (options) => ({
|
|
6
4
|
name: "vue-jsx-vapor",
|
|
@@ -9,6 +7,5 @@ var astro_default = (options) => ({
|
|
|
9
7
|
astro.config.vite.plugins.push(unplugin.vite(options));
|
|
10
8
|
} }
|
|
11
9
|
});
|
|
12
|
-
|
|
13
10
|
//#endregion
|
|
14
|
-
export { astro_default as default };
|
|
11
|
+
export { astro_default as default };
|
package/dist/bun.d.ts
CHANGED
package/dist/bun.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { transform } from "@vue-jsx
|
|
2
|
-
|
|
1
|
+
import { transform } from "@vue-jsx/compiler";
|
|
3
2
|
//#region src/core/index.ts
|
|
4
3
|
function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR = false, ssr = false) {
|
|
5
4
|
return transform(code, {
|
|
@@ -11,6 +10,5 @@ function transformVueJsxVapor(code, id, options, needSourceMap = false, needHMR
|
|
|
11
10
|
...options?.compiler
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
|
-
export { transformVueJsxVapor as t };
|
|
14
|
+
export { transformVueJsxVapor as t };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as unplugin from "unplugin";
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) => unplugin.EsbuildPlugin;
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.EsbuildPlugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$_vue_jsx_compiler0 from "@vue-jsx/compiler";
|
|
3
|
+
|
|
4
|
+
//#region src/core/index.d.ts
|
|
5
|
+
declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean, needHMR?: boolean, ssr?: boolean): _$_vue_jsx_compiler0.TransformReturn;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { transformVueJsxVapor as t };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import { vaporH } from "@vue-jsx/runtime";
|
|
2
|
+
export * from "@vue-jsx/runtime";
|
|
3
|
+
export { vaporH as H };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$_nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
interface ModuleOptions extends Options {}
|
|
6
|
-
declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
|
+
declare const _default: _$_nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ModuleOptions, _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
1
|
import vite_default from "./vite.js";
|
|
3
2
|
import webpack_default from "./webpack.js";
|
|
4
3
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
4
|
import "@nuxt/schema";
|
|
6
|
-
|
|
7
5
|
//#region src/nuxt.ts
|
|
8
6
|
var nuxt_default = defineNuxtModule({
|
|
9
7
|
meta: {
|
|
@@ -15,6 +13,5 @@ var nuxt_default = defineNuxtModule({
|
|
|
15
13
|
addWebpackPlugin(() => webpack_default(options));
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
|
-
export { nuxt_default as default };
|
|
17
|
+
export { nuxt_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CompilerOptions } from "@vue-jsx
|
|
2
|
-
import { Options } from "@vue-jsx-vapor/macros";
|
|
1
|
+
import { CompilerOptions } from "@vue-jsx/compiler";
|
|
3
2
|
import { FilterPattern } from "unplugin";
|
|
3
|
+
import { Options } from "@vue-jsx/macros";
|
|
4
4
|
|
|
5
5
|
//#region src/options.d.ts
|
|
6
6
|
interface Options$1 {
|
package/dist/raw.d.ts
CHANGED
package/dist/raw.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as transformVueJsxVapor } from "./core-
|
|
2
|
-
import macros from "@vue-jsx
|
|
3
|
-
import { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId } from "@vue-jsx
|
|
1
|
+
import { t as transformVueJsxVapor } from "./core-PEhKTzzv.js";
|
|
2
|
+
import macros from "@vue-jsx/macros/raw";
|
|
3
|
+
import { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId } from "@vue-jsx/runtime/raw";
|
|
4
4
|
import { relative } from "pathe";
|
|
5
5
|
import { normalizePath } from "unplugin-utils";
|
|
6
|
-
|
|
7
6
|
//#region src/raw.ts
|
|
8
7
|
const plugin = (options = {}) => {
|
|
9
8
|
let root = "";
|
|
@@ -55,6 +54,5 @@ const plugin = (options = {}) => {
|
|
|
55
54
|
}
|
|
56
55
|
}];
|
|
57
56
|
};
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
|
-
export { plugin as default };
|
|
58
|
+
export { plugin as default };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$rollup from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$rollup.Plugin<any>[] | _$rollup.Plugin<any>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rolldown.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
1
|
import { unpluginFactory } from "./unplugin.js";
|
|
3
2
|
import { createRollupPlugin } from "unplugin";
|
|
4
|
-
|
|
5
3
|
//#region src/rolldown.ts
|
|
6
4
|
var rolldown_default = createRollupPlugin(unpluginFactory);
|
|
7
|
-
|
|
8
5
|
//#endregion
|
|
9
|
-
export { rolldown_default as default };
|
|
6
|
+
export { rolldown_default as default };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$rollup from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$rollup.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
package/dist/rsbuild.d.ts
CHANGED
package/dist/rsbuild.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
1
|
import unplugin from "./unplugin.js";
|
|
3
|
-
|
|
4
2
|
//#region src/rsbuild.ts
|
|
5
3
|
var rsbuild_default = (options = {}) => ({
|
|
6
4
|
name: "rsbuild:vue-jsx-vapor",
|
|
@@ -10,6 +8,5 @@ var rsbuild_default = (options = {}) => ({
|
|
|
10
8
|
});
|
|
11
9
|
}
|
|
12
10
|
});
|
|
13
|
-
|
|
14
11
|
//#endregion
|
|
15
|
-
export { rsbuild_default as default };
|
|
12
|
+
export { rsbuild_default as default };
|
package/dist/rspack.d.ts
CHANGED
package/dist/rspack.js
CHANGED
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
2
3
|
import { UnpluginFactory } from "unplugin";
|
|
3
4
|
|
|
4
5
|
//#region src/unplugin.d.ts
|
|
5
6
|
declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
|
|
6
|
-
declare const unplugin: unplugin.UnpluginInstance<Options | undefined, true>;
|
|
7
|
+
declare const unplugin: _$unplugin.UnpluginInstance<Options | undefined, true>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { type Options, unplugin as default, unplugin, unpluginFactory };
|
package/dist/unplugin.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import "./core-F-TBUTIG.js";
|
|
2
1
|
import plugin from "./raw.js";
|
|
3
2
|
import { createUnplugin } from "unplugin";
|
|
4
|
-
|
|
5
3
|
//#region src/unplugin.ts
|
|
6
4
|
const unpluginFactory = (options = {}) => {
|
|
7
5
|
return plugin(options);
|
|
8
6
|
};
|
|
9
7
|
const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
|
|
10
|
-
|
|
11
8
|
//#endregion
|
|
12
|
-
export { unplugin as default, unplugin, unpluginFactory };
|
|
9
|
+
export { unplugin as default, unplugin, unpluginFactory };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as vite from "vite";
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$vite from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) => vite.Plugin<any>[];
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$vite.Plugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/vite.js
CHANGED
package/dist/volar.d.ts
CHANGED
package/dist/volar.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import jsxMacros from "@vue-jsx
|
|
1
|
+
import jsxMacros from "@vue-jsx/macros/volar";
|
|
2
2
|
import { allCodeFeatures, createPlugin } from "ts-macro";
|
|
3
3
|
import { isHTMLTag, isSVGTag } from "@vue/shared";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=79e6492c51b3afca57b92023dd1aae9ddd57140efa1cf2cdf74d_262ce6aa330524083603b341647cfe9f/node_modules/@vue-macros/volar/dist/jsx-directive-w2gUTWdx.js
|
|
4
|
+
//#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=79e6492c51b3afca57b92023dd1aae9ddd57140efa1cf2cdf74d_acc5ae0987bad0943555f2f9fe5e1571/node_modules/@vue-macros/volar/dist/jsx-directive-w2gUTWdx.js
|
|
6
5
|
function getDirectiveArgs(attribute, options) {
|
|
7
6
|
const { ts, ast } = options;
|
|
8
7
|
const attributeName = attribute.name.getText(ast);
|
|
@@ -701,7 +700,7 @@ function getTagName(node, options) {
|
|
|
701
700
|
if (!openingElement) return "";
|
|
702
701
|
return openingElement.tagName.getText(options.ast);
|
|
703
702
|
}
|
|
704
|
-
|
|
703
|
+
var jsx_directive_default = createPlugin(({ ts, vueCompilerOptions }, options = vueCompilerOptions?.vueMacros?.jsxDirective === true ? {} : vueCompilerOptions?.vueMacros?.jsxDirective ?? {}) => {
|
|
705
704
|
if (!options) return [];
|
|
706
705
|
return {
|
|
707
706
|
name: "vue-macros-jsx-directive",
|
|
@@ -716,10 +715,8 @@ const plugin$2 = createPlugin(({ ts, vueCompilerOptions }, options = vueCompiler
|
|
|
716
715
|
}
|
|
717
716
|
};
|
|
718
717
|
});
|
|
719
|
-
var jsx_directive_default = plugin$2;
|
|
720
|
-
|
|
721
718
|
//#endregion
|
|
722
|
-
//#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=
|
|
719
|
+
//#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=79e6492c51b3afca57b92023dd1aae9ddd57140efa1cf2cdf74d_acc5ae0987bad0943555f2f9fe5e1571/node_modules/@vue-macros/volar/dist/jsx-ref-DZlb-F7c.js
|
|
723
720
|
function transformRef({ nodes, codes, ts }) {
|
|
724
721
|
for (const { name, initializer } of nodes) if (ts.isCallExpression(initializer)) codes.replaceRange(initializer.expression.end, initializer.expression.end, `<Parameters<typeof __VLS_ctx_${name.text}['expose']>[0] | null>`);
|
|
725
722
|
}
|
|
@@ -743,7 +740,7 @@ function getRefNodes(ts, sourceFile, alias) {
|
|
|
743
740
|
ts.forEachChild(sourceFile, walk);
|
|
744
741
|
return result;
|
|
745
742
|
}
|
|
746
|
-
|
|
743
|
+
var jsx_ref_default = createPlugin(({ ts, vueCompilerOptions }, options = vueCompilerOptions?.vueMacros?.jsxRef === true ? {} : vueCompilerOptions?.vueMacros?.jsxRef ?? {}) => {
|
|
747
744
|
if (!options) return [];
|
|
748
745
|
const alias = options.alias || ["useRef"];
|
|
749
746
|
return {
|
|
@@ -760,13 +757,11 @@ const plugin$1 = createPlugin(({ ts, vueCompilerOptions }, options = vueCompiler
|
|
|
760
757
|
}
|
|
761
758
|
};
|
|
762
759
|
});
|
|
763
|
-
var jsx_ref_default = plugin$1;
|
|
764
|
-
|
|
765
760
|
//#endregion
|
|
766
761
|
//#region src/volar/jsx-element.ts
|
|
767
762
|
var jsx_element_default = createPlugin(({ ts }) => {
|
|
768
763
|
return {
|
|
769
|
-
name: "@vue-jsx
|
|
764
|
+
name: "@vue-jsx/jsx-element",
|
|
770
765
|
resolveVirtualCode({ ast, codes }) {
|
|
771
766
|
let transformed = false;
|
|
772
767
|
ast.forEachChild(function walk(node, parent = ast) {
|
|
@@ -804,7 +799,6 @@ type __InferJsxElement<T> = T extends keyof HTMLElementTagNameMap
|
|
|
804
799
|
function isConditionalExpression(ts, node) {
|
|
805
800
|
return !!(node && (ts.isBinaryExpression(node) || ts.isConditionalExpression(node)) && node.parent && (ts.isJsxExpression(node.parent) || isConditionalExpression(ts, node.parent)));
|
|
806
801
|
}
|
|
807
|
-
|
|
808
802
|
//#endregion
|
|
809
803
|
//#region src/volar.ts
|
|
810
804
|
const plugin = createPlugin((ctx, options = ctx.vueCompilerOptions?.["vue-jsx-vapor"]) => {
|
|
@@ -815,6 +809,5 @@ const plugin = createPlugin((ctx, options = ctx.vueCompilerOptions?.["vue-jsx-va
|
|
|
815
809
|
options?.interop ? [] : jsx_element_default()(ctx)
|
|
816
810
|
].flat();
|
|
817
811
|
});
|
|
818
|
-
|
|
819
812
|
//#endregion
|
|
820
|
-
export { plugin as default, plugin as "module.exports" };
|
|
813
|
+
export { plugin as default, plugin as "module.exports" };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Options } from "./options-
|
|
2
|
-
import * as unplugin from "unplugin";
|
|
1
|
+
import { t as Options } from "./options-B8dfdYK8.js";
|
|
2
|
+
import * as _$unplugin from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) => unplugin.WebpackPluginInstance;
|
|
5
|
+
declare const _default: (options?: Options | undefined) => _$unplugin.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-jsx-vapor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0-beta.1",
|
|
5
5
|
"description": "Vapor Mode of Vue JSX",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
|
|
@@ -23,108 +23,25 @@
|
|
|
23
23
|
"vapor"
|
|
24
24
|
],
|
|
25
25
|
"exports": {
|
|
26
|
-
".":
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"./
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"./
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"require": "./dist/rspack.cjs"
|
|
43
|
-
},
|
|
44
|
-
"./rsbuild": {
|
|
45
|
-
"types": "./dist/rsbuild.d.ts",
|
|
46
|
-
"jsx-vapor-dev": "./src/rsbuild.ts",
|
|
47
|
-
"import": "./dist/rsbuild.js",
|
|
48
|
-
"require": "./dist/rsbuild.cjs"
|
|
49
|
-
},
|
|
50
|
-
"./vite": {
|
|
51
|
-
"types": "./dist/vite.d.ts",
|
|
52
|
-
"jsx-vapor-dev": "./src/vite.ts",
|
|
53
|
-
"import": "./dist/vite.js",
|
|
54
|
-
"require": "./dist/vite.cjs"
|
|
55
|
-
},
|
|
56
|
-
"./webpack": {
|
|
57
|
-
"types": "./dist/webpack.d.ts",
|
|
58
|
-
"jsx-vapor-dev": "./src/webpack.ts",
|
|
59
|
-
"import": "./dist/webpack.js",
|
|
60
|
-
"require": "./dist/webpack.cjs"
|
|
61
|
-
},
|
|
62
|
-
"./rollup": {
|
|
63
|
-
"types": "./dist/rollup.d.ts",
|
|
64
|
-
"jsx-vapor-dev": "./src/rollup.ts",
|
|
65
|
-
"import": "./dist/rollup.js",
|
|
66
|
-
"require": "./dist/rollup.cjs"
|
|
67
|
-
},
|
|
68
|
-
"./esbuild": {
|
|
69
|
-
"types": "./dist/esbuild.d.ts",
|
|
70
|
-
"jsx-vapor-dev": "./src/esbuild.ts",
|
|
71
|
-
"import": "./dist/esbuild.js",
|
|
72
|
-
"require": "./dist/esbuild.cjs"
|
|
73
|
-
},
|
|
74
|
-
"./nuxt": {
|
|
75
|
-
"types": "./dist/nuxt.d.ts",
|
|
76
|
-
"jsx-vapor-dev": "./src/nuxt.ts",
|
|
77
|
-
"import": "./dist/nuxt.js",
|
|
78
|
-
"require": "./dist/nuxt.cjs"
|
|
79
|
-
},
|
|
80
|
-
"./api": {
|
|
81
|
-
"types": "./dist/api.d.ts",
|
|
82
|
-
"jsx-vapor-dev": "./src/api.ts",
|
|
83
|
-
"import": "./dist/api.js",
|
|
84
|
-
"require": "./dist/api.cjs"
|
|
85
|
-
},
|
|
86
|
-
"./raw": {
|
|
87
|
-
"types": "./dist/raw.d.ts",
|
|
88
|
-
"jsx-vapor-dev": "./src/raw.ts",
|
|
89
|
-
"import": "./dist/raw.js",
|
|
90
|
-
"require": "./dist/raw.cjs"
|
|
91
|
-
},
|
|
92
|
-
"./rolldown": {
|
|
93
|
-
"types": "./dist/rolldown.d.ts",
|
|
94
|
-
"jsx-vapor-dev": "./src/rolldown.ts",
|
|
95
|
-
"import": "./dist/rolldown.js",
|
|
96
|
-
"require": "./dist/rolldown.cjs"
|
|
97
|
-
},
|
|
98
|
-
"./bun": {
|
|
99
|
-
"types": "./dist/bun.d.ts",
|
|
100
|
-
"jsx-vapor-dev": "./src/bun.ts",
|
|
101
|
-
"import": "./dist/bun.js",
|
|
102
|
-
"require": "./dist/bun.cjs"
|
|
103
|
-
},
|
|
104
|
-
"./unplugin": {
|
|
105
|
-
"types": "./dist/unplugin.d.ts",
|
|
106
|
-
"jsx-vapor-dev": "./src/unplugin.ts",
|
|
107
|
-
"import": "./dist/unplugin.js",
|
|
108
|
-
"require": "./dist/unplugin.cjs"
|
|
109
|
-
},
|
|
110
|
-
"./jsx-runtime": {
|
|
111
|
-
"types": "./jsx-runtime/vapor.d.ts",
|
|
112
|
-
"default": "./jsx-runtime/vapor.js"
|
|
113
|
-
},
|
|
114
|
-
"./vdom/jsx-runtime": {
|
|
115
|
-
"types": "./jsx-runtime/vdom.d.ts",
|
|
116
|
-
"default": "./jsx-runtime/vdom.js"
|
|
117
|
-
},
|
|
118
|
-
"./volar": {
|
|
119
|
-
"types": "./dist/volar.d.ts",
|
|
120
|
-
"jsx-vapor-dev": "./src/volar.ts",
|
|
121
|
-
"import": "./dist/volar.js",
|
|
122
|
-
"require": "./dist/volar.cjs"
|
|
123
|
-
},
|
|
26
|
+
".": "./dist/index.js",
|
|
27
|
+
"./astro": "./dist/astro.js",
|
|
28
|
+
"./rspack": "./dist/rspack.js",
|
|
29
|
+
"./rsbuild": "./dist/rsbuild.js",
|
|
30
|
+
"./vite": "./dist/vite.js",
|
|
31
|
+
"./webpack": "./dist/webpack.js",
|
|
32
|
+
"./rollup": "./dist/rollup.js",
|
|
33
|
+
"./esbuild": "./dist/esbuild.js",
|
|
34
|
+
"./nuxt": "./dist/nuxt.js",
|
|
35
|
+
"./api": "./dist/api.js",
|
|
36
|
+
"./raw": "./dist/raw.js",
|
|
37
|
+
"./rolldown": "./dist/rolldown.js",
|
|
38
|
+
"./bun": "./dist/bun.js",
|
|
39
|
+
"./unplugin": "./dist/unplugin.js",
|
|
40
|
+
"./jsx-runtime": "./jsx-runtime/index.js",
|
|
41
|
+
"./volar": "./dist/volar.js",
|
|
124
42
|
"./*": "./*"
|
|
125
43
|
},
|
|
126
|
-
"main": "dist/index.
|
|
127
|
-
"module": "dist/index.js",
|
|
44
|
+
"main": "dist/index.js",
|
|
128
45
|
"types": "dist/index.d.ts",
|
|
129
46
|
"typesVersions": {
|
|
130
47
|
"*": {
|
|
@@ -171,20 +88,20 @@
|
|
|
171
88
|
}
|
|
172
89
|
},
|
|
173
90
|
"dependencies": {
|
|
174
|
-
"@vue/
|
|
91
|
+
"@vue-jsx/compiler": "3.3.0-beta.1",
|
|
92
|
+
"@vue-jsx/macros": "3.3.0-beta.1",
|
|
93
|
+
"@vue-jsx/runtime": "3.3.0-beta.1",
|
|
94
|
+
"@vue/shared": "3.6.0-rc.5",
|
|
175
95
|
"pathe": "^2.0.3",
|
|
176
96
|
"ts-macro": "^0.3.7",
|
|
177
97
|
"unplugin": "^3.0.0",
|
|
178
|
-
"unplugin-utils": "^0.3.1"
|
|
179
|
-
"@vue-jsx-vapor/compiler-rs": "3.2.21",
|
|
180
|
-
"@vue-jsx-vapor/macros": "3.2.21",
|
|
181
|
-
"@vue-jsx-vapor/runtime": "3.2.21"
|
|
98
|
+
"unplugin-utils": "^0.3.1"
|
|
182
99
|
},
|
|
183
100
|
"devDependencies": {
|
|
184
101
|
"@nuxt/kit": "^3.21.4",
|
|
185
102
|
"@nuxt/schema": "^3.21.4",
|
|
186
103
|
"@vue-macros/volar": "^3.1.4",
|
|
187
|
-
"vue": "3.6.0-rc.
|
|
104
|
+
"vue": "3.6.0-rc.5"
|
|
188
105
|
},
|
|
189
106
|
"scripts": {
|
|
190
107
|
"build": "tsdown",
|
package/dist/api.cjs
DELETED
package/dist/api.d.cts
DELETED
package/dist/astro.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
require('./core-CM75Ciyx.cjs');
|
|
3
|
-
const require_unplugin = require('./unplugin.cjs');
|
|
4
|
-
|
|
5
|
-
//#region src/astro.ts
|
|
6
|
-
var astro_default = (options) => ({
|
|
7
|
-
name: "vue-jsx-vapor",
|
|
8
|
-
hooks: { "astro:config:setup": (astro) => {
|
|
9
|
-
astro.config.vite.plugins ||= [];
|
|
10
|
-
astro.config.vite.plugins.push(require_unplugin.default.vite(options));
|
|
11
|
-
} }
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
exports.default = astro_default;
|
package/dist/astro.d.cts
DELETED
package/dist/bun.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
require('./core-CM75Ciyx.cjs');
|
|
3
|
-
const require_unplugin = require('./unplugin.cjs');
|
|
4
|
-
|
|
5
|
-
//#region src/bun.ts
|
|
6
|
-
var bun_default = require_unplugin.default.bun;
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
exports.default = bun_default;
|