Skip to content

Automerge WASM and Browser Builds

HyperToken's Engine and action registry are TypeScript. The browser bundler aliases @automerge/automerge to Automerge's fullfat_base64 entry point, which packages Automerge's own WASM implementation into the JavaScript bundle.

Build a browser entry with the shared script:

node --loader ./test/ts-esm-loader.js core/browser/build.js \
  --entry path/to/your-game.js \
  --out path/to/bundle.js