@tsrx/bun-plugin-vue
@tsrx/bun-plugin-vue
Bun plugin for compiling @tsrx/vue .tsrx files.
Installation
pnpm add -D @tsrx/bun-plugin-vue
Usage
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 sibling-scoped <style> blocks (each styles its siblings and everything
below them) 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.runtimeImports: helper import mode ('compiler'by default, or'direct'for standalone runtime imports).platform: optional override/fallback for the compile-time platform. Normally the plugin readstsrx.platformfrom Bun's selected/nearest tsconfig, includingextends. An override must match tsconfig. ForBun.build, all three exact flags are defined and conflicting definitions are rejected.emitCss: whether to emit virtual CSS imports (default:true).include,exclude: regex filters for source files.
When using runtimeImports: 'direct', install the runtime as a direct production
dependency of the package that owns the compiled modules:
pnpm add @tsrx/vue-runtime
Bun may bundle the helpers into its output, but this plugin only emits bare
@tsrx/vue-runtime/* imports and does not provide the runtime package.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.0.91 | MIT | |
| 0.0.90 | MIT | |
| 0.0.89 | MIT | |
| 0.0.88 | MIT | |
| 0.0.87 | MIT | |
| 0.0.86 | MIT | |
| 0.0.85 | MIT | |
| 0.0.84 | MIT | |
| 0.0.83 | MIT | |
| 0.0.82 | MIT | |
| 0.0.81 | MIT | |
| 0.0.80 | MIT | |
| 0.0.79 | MIT | |
| 0.0.78 | MIT | |
| 0.0.77 | MIT | |
| 0.0.76 | MIT | |
| 0.0.75 | MIT | |
| 0.0.74 | MIT | |
| 0.0.73 | MIT | |
| 0.0.72 | MIT | |
| 0.0.71 | MIT | |
| 0.0.70 | MIT | |
| 0.0.69 | MIT | |
| 0.0.68 | MIT | |
| 0.0.67 | MIT | |
| 0.0.66 | MIT | |
| 0.0.65 | MIT | |
| 0.0.64 | MIT | |
| 0.0.63 | MIT | |
| 0.0.62 | MIT |
Showing the latest 30 of 87. See every release on npm