a Bun plugin for Vue 3
npm install bun-plugin-vue3A Bun plugin for Vue 3 Single File Components.
[![NPM version][npm-version-image]][npm-url]

![NPM Downloads][npm-downloads-image]
``sh`
bun add -D bun-plugin-vue3
bun-plugin-vue3 integrates with Bun's Fullstack Dev Server, giving you HMR when developing your Vue app.
Start by registering it in your bunfig.toml:
`toml`
[serve.static]
plugins = ["bun-plugin-vue3"]
Then start your dev server:
`sh`
bun index.html
bun-plugin-vue3 lets you bundle Vue components with Bun.build.
`ts
// build.ts
// to use: bun build.ts
import { pluginVue3 } from 'bun-plugin-vue3'
await Bun.build({
entrypoints: ['./index.html'],
outdir: './dist',
plugins: [
pluginVue3({
isProduction: false, // Enable for production builds
}),
],
})
`
`bash``
git clone https://github.com/jh0rman/bun-plugin-vue.git
cd bun-plugin-vue
bun install
Contributions are welcome! Please feel free to submit a Pull Request.
[npm-version-image]: https://img.shields.io/npm/v/bun-plugin-vue3.svg
[npm-url]: https://npmjs.org/package/bun-plugin-vue3
[npm-downloads-image]: https://img.shields.io/npm/dm/bun-plugin-vue3.svg