Skip to content

Installation

  • Node.js 18+
  • A package manager (npm, pnpm, or yarn)
Terminal window
npm install solidion solid-js phaser

Solidion requires the SolidJS Vite plugin configured for universal rendering:

vite.config.ts
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [
solidPlugin({
solid: {
generate: "universal",
moduleName: "solidion/renderer",
},
}),
],
});

Add the Solidion JSX types to your tsconfig.json:

{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
}
}