Official Vite plugin for Solid.js, providing HMR, JSX transformation, and SSR support. Current stable version is 2.11.12, supporting Vite versions 3 through 8 and Solid.js 1.7.2+. Development on v3.0.0 is ongoing with release candidates. Key differentiators: first-class Solid.js integration, solid-refresh HMR, and automatic configuration of Babel/Solid transforms. Releases are frequent with patches addressing edge cases and compatibility with newer Vite versions. Alternatives like unplugin-solid are less official.
npm install vite-plugin-solidVerified import paths — ran on the pinned version, not inferred.
Shows minimal Vite config with Solid plugin, enabling HMR and JSX transforms.
Upgrade to v2.11.10+ to avoid unconditional externalization.
Pin to v2.x for stable projects: npm install vite-plugin-solid@^2
Order plugins: solidPlugin() before other transforms.
Update to v2.11.11+ or v3 pre-release.
Use ESM import syntax exclusively.
Run 'npm install vite-plugin-solid'
Use 'import solidPlugin from 'vite-plugin-solid''
Ensure Solid components use .jsx or .tsx extension.