Vite Installation
Currently Selectoplasm should work with any project that was created with npm create vite. Other frameworks which are running on Vite through their own create commands might work, but they might not. Astro for instance seems to prevent Selectoplasm from mounting and I haven't made a proper integration yet.
To run Selectoplasm with Vite, you just need to import and include the Selectoplasm plugin in your vite.config.js:
// existing imports
import { selectoplasm } from "selectoplasm/vite";
export default defineConfig({
plugins: [/* existing plugins */, selectoplasm()],
});
That's it. Selectoplasm will only mount in dev mode, so you don't need to worry about including it in your production builds.