Starter repo for using Skia CanvasKit with Vite as the bundler. I had issues getting this working so hopefully this will help you get past them quicker.
Credit goes to @chientrm for finding a way that works.
Hopefully the integration story will get better in future builds of CanvasKit.
This repo just demonstrates loading CanvasKit with Vite as the bundler and then running the simple animation loop demo.
npm ci
npm run dev
to start development servernpm run build
to build for productionnpm run preview
to start preview server for production build