@static-dom/vite
v0.1.0
Published
Vite plugin that configures the SDOM JSX runtime
Maintainers
Readme
@static-dom/vite
Vite plugin that wires up the Static DOM JSX runtime.
Install
pnpm add -D @static-dom/vitevite (^5 or ^6) is a peer dependency.
Usage
// vite.config.ts
import { defineConfig } from "vite"
import { sdomJsx } from "@static-dom/vite"
export default defineConfig({
plugins: [sdomJsx()],
})The plugin sets esbuild.jsx = "automatic" and esbuild.jsxImportSource = "@static-dom/core", so that JSX in your project compiles against SDOM's runtime.
License
Dual-licensed under Apache-2.0 OR MIT.
