/unplugin-vue-named-export

Named export for Vue SFC.

Primary LanguageTypeScriptMIT LicenseMIT

unplugin-vue-named-export npm

Unit Test

Named export for Vue SFC.

Installation

npm i unplugin-vue-named-export
Vite
// vite.config.ts
import VueNamedExport from 'unplugin-vue-named-export/vite'

export default defineConfig({
  plugins: [VueNamedExport()],
})


Rollup
// rollup.config.js
import VueNamedExport from 'unplugin-vue-named-export/rollup'

export default {
  plugins: [VueNamedExport()],
}


esbuild
// esbuild.config.js
import { build } from 'esbuild'

build({
  plugins: [require('unplugin-vue-named-export/esbuild')()],
})


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [require('unplugin-vue-named-export/webpack')()],
}


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [require('unplugin-vue-named-export/webpack')()],
  },
}


Sponsors

License

MIT License © 2022 三咲智子