@tsrx/rspack-plugin-vue
@tsrx/rspack-plugin-vue
Rspack plugin for compiling @tsrx/vue .tsrx files.
Installation
pnpm add @tsrx/vue vue vue-jsx-vapor
pnpm add -D @tsrx/rspack-plugin-vue
Usage
import { TsrxVueRspackPlugin } from '@tsrx/rspack-plugin-vue';
export default {
plugins: [new TsrxVueRspackPlugin()],
};
The plugin compiles .tsrx modules with @tsrx/vue, runs the result through
vue-jsx-vapor, strips the remaining TypeScript syntax with builtin:swc-loader,
and emits sibling-scoped <style> blocks (each styles its siblings and everything
below them) through Rspack's built-in CSS module type.
It also pushes .tsrx into resolve.extensions and enables experiments.css
when unset. Editor typechecking should set jsxImportSource: 'vue-jsx-vapor'.
Options
vapor: options forwarded tovue-jsx-vapor. By default the plugin enables macros and usesruntimeModuleName: 'vue-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 the project tsconfig (includingresolve.tsConfigandextends). An override must match tsconfig. The plugin defines all three exact flags and rejects conflicting Rspack definitions.
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
The plugin only emits bare @tsrx/vue-runtime/* imports and does not provide the
runtime package.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.0.99 | MIT | |
| 0.0.98 | MIT | |
| 0.0.97 | MIT | |
| 0.0.96 | MIT | |
| 0.0.95 | MIT | |
| 0.0.94 | MIT | |
| 0.0.93 | MIT | |
| 0.0.92 | MIT | |
| 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 |
Showing the latest 30 of 96. See every release on npm