esbuild-plugin-vue-next
an esbuild plugin for vue 3.x SFC
77,959
| Install | |
|---|---|
npm install esbuild-plugin-vue-next |
|
| Latest Version: | 0.1.4 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jan 25, 2022 |
| Links: | npm |
Maintainer: zhangyu996
esbuild-plugin-vue-next
building vue 3.x SFC files with esbuild.
Quickstart
- install
npm install -D esbuild-plugin-vue-next
// or
yarn add -D esbuild-plugin-vue-next
- use plugin
// build.js
const { build } = require('esbuild')
const pluginVue = require('esbuild-plugin-vue-next')
build({
entryPoints: ['index.js'], // your entry file
bundle: true,
outfile: 'bundle.js',
plugins: [pluginVue()]
})
- run esbuild
node build.js
Options
export interface Options {
// template
templateOptions?: Pick<SFCTemplateCompileOptions, 'compiler' | 'preprocessLang' | 'preprocessOptions' | 'compilerOptions' | 'transformAssetUrls'>
// script
scriptOptions?: Pick<SFCScriptCompileOptions, 'babelParserPlugins' | 'refSugar'>
// style
styleOptions?: Pick<SFCAsyncStyleCompileOptions, 'modulesOptions' | 'preprocessLang' | 'preprocessOptions' | 'postcssOptions' | 'postcssPlugins'>
}
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.0 | MIT |