This is an example project demonstrating how to use emotion-solid2 with Vite and SolidJS.
This project uses the local emotion-solid package from the parent directory. The Vite configuration is set up to resolve emotion-solid2 to the local package source files.
- Build the emotion-solid package first (from the parent directory):
cd ../emotion-solid
npm install
npm run build- Install dependencies for this example project:
npm installnpm run devThe example uses the source files from ../emotion-solid/src directly, so changes to emotion-solid will be reflected immediately during development.
npm run buildnpm run preview