0.1.0 • Published 9 months ago
vue-ts-props-plugin-vite v0.1.0
What is this
This is a plugin to implement this.It will compiler code defineComponent((props:Props)=>(()=>JSX)))
to defineComponent({props,setup})
.
Install
//vite
yarn install vue-ts-props-plugin-vite
Usage
//vite
import { defineConfig } from "vite";
import { VueTSPropsPlugin } from "vue-ts-props-plugin-vite";
export default defineConfig({
plugins:[VueTSPropsPlugin()]
})