@tsrx/bun-plugin-vue
v0.0.8
Published
Bun plugin for @tsrx/vue (.tsrx modules)
Downloads
499
Readme
@tsrx/bun-plugin-vue
Bun plugin for compiling @tsrx/vue .tsrx files.
Installation
pnpm add -D @tsrx/bun-plugin-vueUsage
import tsrxVue from '@tsrx/bun-plugin-vue';
await Bun.build({
entrypoints: ['./src/App.tsrx'],
outdir: './dist',
target: 'browser',
plugins: [tsrxVue()],
});The plugin compiles .tsrx modules with @tsrx/vue, runs the downstream
vue-jsx-vapor transform, strips the remaining TypeScript syntax with Bun, and
emits component-local <style> blocks as virtual CSS modules.
For bun:test, register it from a preload:
import tsrxVue from '@tsrx/bun-plugin-vue';
Bun.plugin(tsrxVue());Options
vapor: options forwarded tovue-jsx-vapor.emitCss: whether to emit virtual CSS imports (default:true).include,exclude: regex filters for source files.
