This turned into: https://github.com/orta/snowpack-plugin-hmr-phaser
A WIP example of fast refresh inside a Phaser game
# Setup
git clone https://github.com/orta/snowpack-phaser-fast-refresh
cd snowpack-phaser-fast-refresh
pnpm i
# Start
pnpm start
Then look at src/Scene.ts
.