A Vite plugin for PawaJS component files that ensures minifier-safe return statements and injects automatic component names. Current version 0.0.4, actively maintained. Uses estree-walker and magic-string for AST transforms. Works with JavaScript and TypeScript. Differentiates by specifically targeting PawaJS framework, unlike general-purpose Vite plugins.
npm install pawajs-vite-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Integrate the PawaJS Vite plugin into your Vite configuration to enable component transformation.
Ensure your PawaJS component files have .pawa extension.
Check release notes and update your config as needed.
Lock your dependency version and monitor changelog.
Ensure .pawa files contain at least one component export or non-empty source.
Reorder plugins: pawajsPlugin before other transform plugins.
Check that your .pawa file uses valid PawaJS syntax; avoid experimental ECMAScript features.