diff --git a/website/src/components/playground/vm.ts b/website/src/components/playground/vm.ts index 132cac9..375a31c 100644 --- a/website/src/components/playground/vm.ts +++ b/website/src/components/playground/vm.ts @@ -194,6 +194,11 @@ export async function bootPlayground( onProgress: (p: Progress) => void, signal: AbortSignal, ): Promise { + // Load the VM runtime first: it rejects with `unsupported-browser` where + // the VM can't run, before a couple hundred MB of downloads. + const { Arm64JS } = await import('arm64js'); + await Arm64JS.mode(); + // --- download, one asset at a time --------------------------------------- const names = [release.binary, ...release.plugins.flatMap((p) => [p.manifest, p.lib])]; const total = names.reduce((n, name) => n + (release.sizes[name] ?? 0), 0);