unplugin-simplify-props
v0.0.4
Published
unplugin-simplify-props
Downloads
1
Readme
unplugin-simplify-props
It will make your writing easier
Install
npm i vite-plugin-simplify-props
🌈 Usage
// vite.config.ts
import { vitePluginPlugin } from 'unplugin-simplify-props'
export default defineConfig({
plugins: [vitePluginPlugin(/* options */)],
})
// rollup.config.js
import { resolve } from 'path'
import { rollupPlugin } from 'unplugin-simplify-props'
export default {
plugins: [rollupPlugin(/* options */)],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-simplify-props').webpackPlugin({
/* options */
}),
],
}
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-simplify-props').webpackPlugin({
/* options */
}),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import { esbuildPlugin } from 'unplugin-simplify-props'
build({
plugins: [esbuildPlugin(/* options */)],
})
<Footer {name} />
Transpiles the same as in Vue
<Footer :name="name" />
Transpiles the same as in React
<Footer name="{name}" />