import { runApp } from './runtime.js' import { browserPlatform } from './browser.js' import { replayMain } from './replay.js' // Given glue for js/replay.html (m10). The recording is plain JSON next to the test fixtures; the page is served from the // repository root by scripts/serve.mjs, so it can be fetched. Resolved against this file, so the page's URL does not matter. const recording = await (await fetch(new URL('../../fixtures/replay-sample.json', import.meta.url))).json() runApp(replayMain(recording), browserPlatform(/** @type {HTMLCanvasElement} */ (document.getElementById('game')), window))