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.
- package/LICENSE +21 -0
- package/README.md +91 -92
- package/dist/api.d.ts +7 -0
- package/dist/api.js +2 -0
- package/dist/astro.d.ts +11 -0
- package/dist/astro.js +11 -0
- package/dist/bun.d.ts +6 -0
- package/dist/bun.js +5 -0
- package/dist/core-D6A0aY-g.js +11 -0
- package/dist/esbuild.d.ts +7 -0
- package/dist/esbuild.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/nuxt.d.ts +8 -0
- package/dist/nuxt.js +17 -0
- package/dist/options-DHzozgGn.d.ts +25 -0
- package/dist/raw.d.ts +7 -0
- package/dist/raw.js +64 -0
- package/dist/rolldown.d.ts +7 -0
- package/dist/rolldown.js +6 -0
- package/dist/rollup.d.ts +7 -0
- package/dist/rollup.js +5 -0
- package/dist/rsbuild.d.ts +9 -0
- package/dist/rsbuild.js +12 -0
- package/dist/rspack.d.ts +6 -0
- package/dist/rspack.js +5 -0
- package/dist/unplugin.d.ts +9 -0
- package/dist/unplugin.js +9 -0
- package/dist/vapor.d.ts +3 -0
- package/dist/vapor.js +3 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +5 -0
- package/dist/volar.d.ts +7 -0
- package/dist/volar.js +770 -0
- package/dist/webpack.d.ts +7 -0
- package/dist/webpack.js +5 -0
- package/jsx-runtime/index.d.ts +10 -0
- package/jsx-runtime/index.js +11 -0
- package/package.json +107 -25
- package/.browserslistrc +0 -3
- package/.eslintrc.js +0 -17
- package/babel.config.js +0 -5
- package/dist/demo.html +0 -8
- package/dist/vue-jsx.common.js +0 -1645
- package/dist/vue-jsx.common.js.map +0 -1
- package/dist/vue-jsx.umd.js +0 -1655
- package/dist/vue-jsx.umd.js.map +0 -1
- package/dist/vue-jsx.umd.min.js +0 -2
- package/dist/vue-jsx.umd.min.js.map +0 -1
- package/postcss.config.js +0 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/App.vue +0 -122
- package/src/assets/logo.png +0 -0
- package/src/components/HelloWorld.vue +0 -58
- package/src/index.js +0 -210
- package/src/main.js +0 -8
- 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
|
+
[](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
|
-
|
|
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
|
-
|
|
16
|
-
import jsx from 'vue-jsx'
|
|
41
|
+
<br></details>
|
|
17
42
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
88
|
-
|
|
80
|
+
> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
|
|
81
|
+
|
|
82
|
+
<br></details>
|
|
89
83
|
|
|
90
|
-
|
|
84
|
+
<details>
|
|
85
|
+
<summary>Vue CLI</summary><br>
|
|
91
86
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
package/dist/astro.d.ts
ADDED
|
@@ -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
package/dist/bun.js
ADDED
|
@@ -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 };
|
package/dist/esbuild.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@vue-jsx/runtime";
|
package/dist/index.js
ADDED
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
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 };
|
package/dist/rolldown.js
ADDED
package/dist/rollup.d.ts
ADDED
package/dist/rollup.js
ADDED
package/dist/rsbuild.js
ADDED
|
@@ -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 };
|
package/dist/rspack.d.ts
ADDED
package/dist/rspack.js
ADDED
|
@@ -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 };
|
package/dist/unplugin.js
ADDED
|
@@ -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 };
|
package/dist/vapor.d.ts
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/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
package/dist/vite.js
ADDED
package/dist/volar.d.ts
ADDED