vue-jsx 0.2.8 → 3.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +91 -92
  3. package/dist/api.d.ts +7 -0
  4. package/dist/api.js +2 -0
  5. package/dist/astro.d.ts +11 -0
  6. package/dist/astro.js +11 -0
  7. package/dist/bun.d.ts +6 -0
  8. package/dist/bun.js +5 -0
  9. package/dist/core-D6A0aY-g.js +11 -0
  10. package/dist/esbuild.d.ts +7 -0
  11. package/dist/esbuild.js +5 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +2 -0
  14. package/dist/nuxt.d.ts +8 -0
  15. package/dist/nuxt.js +17 -0
  16. package/dist/options-DHzozgGn.d.ts +25 -0
  17. package/dist/raw.d.ts +7 -0
  18. package/dist/raw.js +64 -0
  19. package/dist/rolldown.d.ts +7 -0
  20. package/dist/rolldown.js +6 -0
  21. package/dist/rollup.d.ts +7 -0
  22. package/dist/rollup.js +5 -0
  23. package/dist/rsbuild.d.ts +9 -0
  24. package/dist/rsbuild.js +12 -0
  25. package/dist/rspack.d.ts +6 -0
  26. package/dist/rspack.js +5 -0
  27. package/dist/unplugin.d.ts +9 -0
  28. package/dist/unplugin.js +9 -0
  29. package/dist/vapor.d.ts +3 -0
  30. package/dist/vapor.js +3 -0
  31. package/dist/vite.d.ts +7 -0
  32. package/dist/vite.js +5 -0
  33. package/dist/volar.d.ts +7 -0
  34. package/dist/volar.js +770 -0
  35. package/dist/webpack.d.ts +7 -0
  36. package/dist/webpack.js +5 -0
  37. package/jsx-runtime/index.d.ts +10 -0
  38. package/jsx-runtime/index.js +11 -0
  39. package/package.json +107 -25
  40. package/.browserslistrc +0 -3
  41. package/.eslintrc.js +0 -17
  42. package/babel.config.js +0 -5
  43. package/dist/demo.html +0 -8
  44. package/dist/vue-jsx.common.js +0 -1645
  45. package/dist/vue-jsx.common.js.map +0 -1
  46. package/dist/vue-jsx.umd.js +0 -1655
  47. package/dist/vue-jsx.umd.js.map +0 -1
  48. package/dist/vue-jsx.umd.min.js +0 -2
  49. package/dist/vue-jsx.umd.min.js.map +0 -1
  50. package/postcss.config.js +0 -5
  51. package/public/favicon.ico +0 -0
  52. package/public/index.html +0 -17
  53. package/src/App.vue +0 -122
  54. package/src/assets/logo.png +0 -0
  55. package/src/components/HelloWorld.vue +0 -58
  56. package/src/index.js +0 -210
  57. package/src/main.js +0 -8
  58. package/vue.config.js +0 -11
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 zhiyuanzmj <https://github.com/zhiyuanzmj>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,112 +1,111 @@
1
1
  # vue-jsx
2
2
 
3
- ## 目标
4
- 简化 vue createElement 写法,从而可以手写 render vnode。
3
+ [![NPM version](https://img.shields.io/npm/v/vue-jsx?color=a1b858&label=)](https://www.npmjs.com/package/vue-jsx)
5
4
 
5
+ High-performance Vue JSX Compiler powered by Oxc.
6
6
 
7
- ## 安装
7
+ ## Features
8
8
 
9
+ - ⚡️ High Performance: The same compiler principles as Vue.
10
+ - 💨 Vapor Mode: The same compiler principles as Vue Vapor.
11
+ - 🦀 Rust Compiler: Powered by Oxc, 35× faster (Virtual DOM) and 50× faster (Vapor) than Babel.
12
+ - 🦾 Type Safe: Native type support for Typescript 7.0.
13
+ - ✨ Unplugin: Provide `vite`, `rollup`, `rolldown` `webpack`, `rspack`, `rsbuild` , `esbuild`, `bun` and more plugins.
14
+ - 📦 Custom Element: Support custom-element by default.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ npm i vue-jsx
9
20
  ```
10
- npm install --save vue-jsx
21
+
22
+ ## Usage
23
+
24
+ - [📜 Documentation](https://vuejsx.dev/)
25
+ - [🛰️ Playground](https://repl.vuejsx.dev)
26
+
27
+ <details>
28
+ <summary>Vite</summary><br>
29
+
30
+ ```ts
31
+ // vite.config.ts
32
+ import VueJsx from 'vue-jsx/vite'
33
+
34
+ export default defineConfig({
35
+ plugins: [VueJsx()],
36
+ })
11
37
  ```
12
38
 
13
- ## 使用
39
+ Example: [`playground/`](./playground/)
14
40
 
15
- ```javascript
16
- import jsx from 'vue-jsx'
41
+ <br></details>
17
42
 
18
- const HelloWorld = {
19
- props: {
20
- msg: String,
21
- },
22
- render (h) {
23
- jsx.use(h)
24
-
25
- return jsx.create('div', {
26
- style_color:'red',
27
- classes: 'hello world',
28
- }, this.msg)
29
- }
43
+ <details>
44
+ <summary>Rollup</summary><br>
45
+
46
+ ```ts
47
+ // rollup.config.js
48
+ import VueJsx from 'vue-jsx/rollup'
49
+
50
+ export default {
51
+ plugins: [VueJsx()],
52
+ }
53
+ ```
54
+
55
+ <br></details>
56
+
57
+ <details>
58
+ <summary>Webpack</summary><br>
59
+
60
+ ```ts
61
+ // webpack.config.js
62
+ module.exports = {
63
+ /* ... */
64
+ plugins: [require('vue-jsx/webpack')()],
30
65
  }
31
66
  ```
32
67
 
33
- ## Api
34
-
35
- ``` javascript
36
- 1、jsx.use
37
- 描述:指定依赖的 vue h
38
- 用法:jsx.use(h)
39
-
40
- 2、jsx.create
41
- 描述:创建 vnode 节点
42
- 用法:
43
- jsx.create('div')
44
-
45
- // class 的简写模式
46
- jsx.create('div.hello + world')
47
-
48
- jsx.create('div', {
49
- // vif,就是 v-if
50
- vif: false,
51
-
52
- // vmodel,就是 v-model
53
- // 最多支持4个参数,vmodel: [this, 'val' ,'modelProp', 'modelEvent']
54
- vmodel: [this, 'val'],
55
-
56
- classes: 'hello world',
57
- class_hello: true,
58
- style_color: 'red',
59
- attrs_id: 'my_id',
60
- props_msg: 'hello, world',
61
- domProps_value: 'input value',
62
- on_click () {},
63
- nativeOn_click () {},
64
- })
65
-
66
- jsx.create('div', {style_color:'red'}, 'nihao', 'nihao2')
67
-
68
- 3、jsx.bind
69
- 描述:构建快捷方式
70
- 用法:
71
- const div = jsx.bind('div')
72
- const HelloWorld = jsx.bind('hello-world')
73
-
74
- const App = {
75
- render (h) {
76
- jsx.use(h)
77
-
78
- return div({style_color:'red'},
79
- HelloWorld()
80
- )
81
- }
82
- }
83
- 备注:实际上 jsx 内置 bind 了大部分常用 dom 元素,比如 a,b,button,dd,div,dl,dt,em,form,i,iframe,img,input,textarea,label,li,ol,optgroup,option,p,select,span,table,th,thead,tbody,tr,td,col,colgroup,ul,h1,h2,h3,h4,h5,h6
68
+ <br></details>
69
+
70
+ <details>
71
+ <summary>Nuxt</summary><br>
72
+
73
+ ```ts
74
+ // nuxt.config.js
75
+ export default defineNuxtConfig({
76
+ modules: ['vue-jsx/nuxt'],
77
+ })
84
78
  ```
85
79
 
86
- ## 演示
87
- ``` javascript
88
- import jsx from 'vue-jsx'
80
+ > This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
81
+
82
+ <br></details>
89
83
 
90
- const {div, h2, p, span, img} = jsx
84
+ <details>
85
+ <summary>Vue CLI</summary><br>
91
86
 
92
- const HelloWord = {
93
- props: {
94
- data: Array,
87
+ ```ts
88
+ // vue.config.js
89
+ module.exports = {
90
+ configureWebpack: {
91
+ plugins: [require('vue-jsx/webpack')()],
95
92
  },
96
- render (h) {
97
- jsx.use(h)
98
-
99
- return div('.hello-world'
100
- h2('hello-world-title'),
101
- div('.hello-world-list'
102
- ...this.data.map(item => {
103
- return div('.hello-world-item',
104
- img({attrs_src: item.imgSrc}),
105
- p(item.content),
106
- )
107
- })
108
- )
109
- )
110
- }
111
93
  }
112
94
  ```
95
+
96
+ <br></details>
97
+
98
+ <details>
99
+ <summary>esbuild</summary><br>
100
+
101
+ ```ts
102
+ // esbuild.config.js
103
+ import { build } from 'esbuild'
104
+ import VueJsx from 'vue-jsx/esbuild'
105
+
106
+ build({
107
+ plugins: [VueJsx()],
108
+ })
109
+ ```
110
+
111
+ <br></details>
package/dist/api.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import * as _$_vue_jsx_compiler0 from "@vue-jsx/compiler";
2
+ import { CompilerOptions } from "@vue-jsx/compiler";
3
+
4
+ //#region src/core/index.d.ts
5
+ declare function transformVueJsx(code: string, id: string, options?: CompilerOptions): _$_vue_jsx_compiler0.TransformReturn;
6
+ //#endregion
7
+ export { type CompilerOptions, transformVueJsx };
package/dist/api.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as transformVueJsx } from "./core-D6A0aY-g.js";
2
+ export { transformVueJsx };
@@ -0,0 +1,11 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+
3
+ //#region src/astro.d.ts
4
+ declare const _default: (options: Options) => {
5
+ name: string;
6
+ hooks: {
7
+ 'astro:config:setup': (astro: any) => void;
8
+ };
9
+ };
10
+ //#endregion
11
+ export { _default as default };
package/dist/astro.js ADDED
@@ -0,0 +1,11 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/astro.ts
3
+ var astro_default = (options) => ({
4
+ name: "vue-jsx",
5
+ hooks: { "astro:config:setup": (astro) => {
6
+ astro.config.vite.plugins ||= [];
7
+ astro.config.vite.plugins.push(unplugin.vite(options));
8
+ } }
9
+ });
10
+ //#endregion
11
+ export { astro_default as default };
package/dist/bun.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+
3
+ //#region src/bun.d.ts
4
+ declare const _default: (options?: Options | undefined) => BunPlugin;
5
+ //#endregion
6
+ export { _default as default };
package/dist/bun.js ADDED
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/bun.ts
3
+ var bun_default = unplugin.bun;
4
+ //#endregion
5
+ export { bun_default as default };
@@ -0,0 +1,11 @@
1
+ import { transform } from "@vue-jsx/compiler";
2
+ //#region src/core/index.ts
3
+ function transformVueJsx(code, id, options) {
4
+ return transform(code, {
5
+ filename: id,
6
+ interop: new URLSearchParams(id).get("vapor") ? false : options?.interop,
7
+ ...options
8
+ });
9
+ }
10
+ //#endregion
11
+ export { transformVueJsx as t };
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$unplugin from "unplugin";
3
+
4
+ //#region src/esbuild.d.ts
5
+ declare const _default: (options?: Options | undefined) => _$unplugin.EsbuildPlugin;
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/esbuild.ts
3
+ var esbuild_default = unplugin.esbuild;
4
+ //#endregion
5
+ export { esbuild_default as default };
@@ -0,0 +1 @@
1
+ export * from "@vue-jsx/runtime";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "@vue-jsx/runtime";
2
+ export {};
package/dist/nuxt.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$_nuxt_schema0 from "@nuxt/schema";
3
+
4
+ //#region src/nuxt.d.ts
5
+ interface ModuleOptions extends Options {}
6
+ declare const _default: _$_nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
+ //#endregion
8
+ export { ModuleOptions, _default as default };
package/dist/nuxt.js ADDED
@@ -0,0 +1,17 @@
1
+ import vite_default from "./vite.js";
2
+ import webpack_default from "./webpack.js";
3
+ import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
4
+ import "@nuxt/schema";
5
+ //#region src/nuxt.ts
6
+ var nuxt_default = defineNuxtModule({
7
+ meta: {
8
+ name: "nuxt-vue-jsx",
9
+ configKey: "vue-jsx"
10
+ },
11
+ setup(options) {
12
+ addVitePlugin(() => vite_default(options));
13
+ addWebpackPlugin(() => webpack_default(options));
14
+ }
15
+ });
16
+ //#endregion
17
+ export { nuxt_default as default };
@@ -0,0 +1,25 @@
1
+ import { CompilerOptions } from "@vue-jsx/compiler";
2
+ import { FilterPattern } from "unplugin";
3
+ import { Options } from "@vue-jsx/macros";
4
+
5
+ //#region src/options.d.ts
6
+ interface Options$1 extends CompilerOptions {
7
+ // define your plugin options here
8
+ include?: FilterPattern;
9
+ exclude?: FilterPattern;
10
+ /**
11
+ * @default true
12
+ * By default, only JSX elements inside `defineVaporComponent` / `defineVaporCustomElement`,
13
+ * or in files ending with `.vapor.jsx` / `.vapor.tsx` (e.g., `Comp.vapor.tsx`), will be compiled to Vapor DOM.
14
+ * Set this to `true` if you want all JSX elements to be compiled to Vapor DOM.
15
+ */
16
+ vapor?: boolean;
17
+ /** @default true */
18
+ ref?: {
19
+ alias?: string[];
20
+ } | boolean;
21
+ /** @default false */
22
+ macros?: Options | boolean;
23
+ }
24
+ //#endregion
25
+ export { Options$1 as t };
package/dist/raw.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import { UnpluginOptions } from "unplugin";
3
+
4
+ //#region src/raw.d.ts
5
+ declare const plugin: (options?: Options) => UnpluginOptions[];
6
+ //#endregion
7
+ export { plugin as default };
package/dist/raw.js ADDED
@@ -0,0 +1,64 @@
1
+ import { t as transformVueJsx } from "./core-D6A0aY-g.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
+ import { relative } from "pathe";
5
+ import { normalizePath } from "unplugin-utils";
6
+ //#region src/raw.ts
7
+ const plugin = (options = {}) => {
8
+ let root = "";
9
+ let hmr = false;
10
+ let sourceMap = false;
11
+ const helperId = /^\/vue-jsx-vapor\//;
12
+ return [...options.macros === false ? [] : options.macros ? macros(options.macros === true ? void 0 : options.macros) : [], {
13
+ enforce: "pre",
14
+ name: "vue-jsx",
15
+ vite: {
16
+ config(config) {
17
+ return { define: {
18
+ __VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
19
+ __VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
20
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false
21
+ } };
22
+ },
23
+ configResolved(config) {
24
+ root = config.root;
25
+ hmr = config.command === "serve";
26
+ sourceMap = config.command === "serve" || !!config.build.sourcemap;
27
+ }
28
+ },
29
+ resolveId: {
30
+ filter: { id: helperId },
31
+ handler: (id) => id
32
+ },
33
+ load: {
34
+ filter: { id: helperId },
35
+ handler(id) {
36
+ if (id === ssrHelperId) return ssrHelperCode;
37
+ if (id === propsHelperId) return propsHelperCode;
38
+ if (id === vdomHelperId) return vdomHelperCode;
39
+ if (id === vaporHelperId) return vaporHelperCode;
40
+ }
41
+ },
42
+ transform: {
43
+ filter: { id: {
44
+ include: options?.include || /\.[cm]?[jt]sx(?=$|[?#])/,
45
+ exclude: options?.exclude || /node_modules/
46
+ } },
47
+ handler(code, id, { ssr } = {}) {
48
+ const result = transformVueJsx(code, ssr ? normalizePath(relative(root, id)) : id, {
49
+ hmr,
50
+ sourceMap,
51
+ ssr,
52
+ interop: !options.vapor,
53
+ ...options
54
+ });
55
+ if (result?.code) return {
56
+ code: result.code,
57
+ map: result.map ? JSON.parse(result.map) : null
58
+ };
59
+ }
60
+ }
61
+ }];
62
+ };
63
+ //#endregion
64
+ export { plugin as default };
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$rollup from "rollup";
3
+
4
+ //#region src/rolldown.d.ts
5
+ declare const _default: (options?: Options | undefined) => _$rollup.Plugin<any>[] | _$rollup.Plugin<any>;
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,6 @@
1
+ import { unpluginFactory } from "./unplugin.js";
2
+ import { createRollupPlugin } from "unplugin";
3
+ //#region src/rolldown.ts
4
+ var rolldown_default = createRollupPlugin(unpluginFactory);
5
+ //#endregion
6
+ export { rolldown_default as default };
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$rollup from "rollup";
3
+
4
+ //#region src/rollup.d.ts
5
+ declare const _default: (options?: Options | undefined) => _$rollup.Plugin<any>[];
6
+ //#endregion
7
+ export { _default as default };
package/dist/rollup.js ADDED
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/rollup.ts
3
+ var rollup_default = unplugin.rollup;
4
+ //#endregion
5
+ export { rollup_default as default };
@@ -0,0 +1,9 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+
3
+ //#region src/rsbuild.d.ts
4
+ declare const _default: (options?: Options) => {
5
+ name: string;
6
+ setup(api: any): void;
7
+ };
8
+ //#endregion
9
+ export { _default as default };
@@ -0,0 +1,12 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/rsbuild.ts
3
+ var rsbuild_default = (options = {}) => ({
4
+ name: "rsbuild:vue-jsx-compiler",
5
+ setup(api) {
6
+ api.modifyBundlerChain((chain) => {
7
+ chain.plugin("vue-jsx").use(unplugin.rspack(options));
8
+ });
9
+ }
10
+ });
11
+ //#endregion
12
+ export { rsbuild_default as default };
@@ -0,0 +1,6 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+
3
+ //#region src/rspack.d.ts
4
+ declare const _default: (options?: Options | undefined) => RspackPluginInstance;
5
+ //#endregion
6
+ export { _default as default };
package/dist/rspack.js ADDED
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/rspack.ts
3
+ var rspack_default = unplugin.rspack;
4
+ //#endregion
5
+ export { rspack_default as default };
@@ -0,0 +1,9 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$unplugin from "unplugin";
3
+ import { UnpluginFactory } from "unplugin";
4
+
5
+ //#region src/unplugin.d.ts
6
+ declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
7
+ declare const unplugin: _$unplugin.UnpluginInstance<Options | undefined, true>;
8
+ //#endregion
9
+ export { type Options, unplugin as default, unplugin, unpluginFactory };
@@ -0,0 +1,9 @@
1
+ import plugin from "./raw.js";
2
+ import { createUnplugin } from "unplugin";
3
+ //#region src/unplugin.ts
4
+ const unpluginFactory = (options = {}) => {
5
+ return plugin(options);
6
+ };
7
+ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
8
+ //#endregion
9
+ export { unplugin as default, unplugin, unpluginFactory };
@@ -0,0 +1,3 @@
1
+ import { VaporFor as For, vaporH as h } from "@vue-jsx/runtime";
2
+ import { VaporKeepAlive as KeepAlive, VaporTeleport as Teleport, VaporTransition as Transition, VaporTransitionGroup as TransitionGroup } from "vue";
3
+ export { For, KeepAlive, Teleport, Transition, TransitionGroup, h };
package/dist/vapor.js ADDED
@@ -0,0 +1,3 @@
1
+ import { VaporFor as For, vaporH as h } from "@vue-jsx/runtime";
2
+ import { VaporKeepAlive as KeepAlive, VaporTeleport as Teleport, VaporTransition as Transition, VaporTransitionGroup as TransitionGroup } from "vue";
3
+ export { For, KeepAlive, Teleport, Transition, TransitionGroup, h };
package/dist/vite.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$vite from "vite";
3
+
4
+ //#region src/vite.d.ts
5
+ declare const _default: (options?: Options | undefined) => _$vite.Plugin<any>[];
6
+ //#endregion
7
+ export { _default as default };
package/dist/vite.js ADDED
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/vite.ts
3
+ var vite_default = unplugin.vite;
4
+ //#endregion
5
+ export { vite_default as default };
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import { PluginReturn } from "ts-macro";
3
+
4
+ //#region src/volar.d.ts
5
+ declare const plugin: PluginReturn<Options | undefined, true>;
6
+ //#endregion
7
+ export { plugin as default, plugin as "module.exports" };