PraxisJS

@praxisjs/vite-plugin

Changelog for @praxisjs/vite-plugin — Vite integration with JSX transform and HMR support.

@praxisjs/vite-plugin

0.2.0

praxisjsCSS() — static CSS extraction plugin for @praxisjs/css.

Scans TypeScript source files for Stylesheet subclasses, keyframes(), globalStyle(), and @Themed() decorators, evaluates them in a sandboxed Node.js context, and emits all CSS into virtual:praxisjs/styles.css. In production, __PRAXIS_CSS_STATIC__ is set to true and runtime <style> injection becomes a no-op. In development, the virtual module is empty and CSS is injected at runtime as usual.

// vite.config.ts
import { praxisjs, praxisjsCSS } from '@praxisjs/vite-plugin'

export default defineConfig({
  plugins: [praxisjs(), praxisjsCSS()],
})

@praxisjs/css is now a peer dependency.

0.1.1

Refreshed workspace dependencies for stability and security (@types/node, eslint, unocss).

0.1.0

Initial release — Vite plugin that configures TypeScript decorators (esbuild target: 'ES2022'), the @praxisjs/jsx import source, and optional component-level HMR.

On this page