0.0.4 • Published 1 year ago

unplugin-simplify-props v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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}" />

License

MIT License © 2022 Simon He

sponsors

0.0.4

1 year ago