Rust-powered static CSS extraction compiler and Vite plugin for Typewriting Class v0.3.2. It statically analyzes TypeScript/JavaScript source files at build time, extracts utility class calls (tw, cx, when), generates deterministic CSS class names and declarations, and replaces call sites with those names for zero-runtime CSS output. Released weekly. Key differentiators: Rust-based performance, strict mode requiring explicit dynamic() wrapping, and Solid.js plugin ordering requirement.
npm install typewritingclass-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Vite plugin with Solid.js, imports virtual CSS module, and uses `tw` from typewritingclass.
Ensure plugins order: [twcPlugin(), solid()]
Wrap dynamic values: tw(dynamic(expr)) or set strict: false in options
Add import 'virtual:twc.css' at the top of your main file
Use import statements or set type: 'module' in package.json
Add twcPlugin() to your Vite plugins array and restart the dev server.
Use default import: import twcPlugin from 'typewritingclass-compiler'
Wrap the value: tw(dynamic(expr)) or disable strict mode with twcPlugin({ strict: false })