Skip to content

Build against the MistWarp engines everywhere - #1

Merged
Mistium merged 1 commit into
masterfrom
mistwarp-forks
Sep 21, 2026
Merged

Mistium merged 1 commit into
masterfrom
mistwarp-forks

Conversation

@Mistium

@Mistium Mistium commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

deploy.yml checks out MistWarp/scratch-render and links it over whatever was
installed, but package.json asked for TurboWarp/scratch-render. Anything that
does not run that link step — build.yml, the standalone artifact, a local
npm install — compiled the packager against a different renderer than the one
the site ships. scratch-audio was TurboWarp's in both places, so the memory fix
in MistWarp/scratch-audio never reached the packager at all.

  • scratch-audio and scratch-render now point at the MistWarp forks.
  • npm run link and the deploy workflow both link all three engines, so the
    linked set matches the declared set.
  • The lockfile is refreshed. It pinned scratch-vm at 86012dac; the engines
    now resolve to their current develop heads — scratch-vm@f514cbcb,
    scratch-render@ce8e30c and scratch-audio@2f2ad72.

One extra fix this required

Advancing the scratch-vm pin pulls in rotur-sdk, which ships class fields in
both its ESM and CommonJS builds. webpack 4's parser cannot read them, so the
build failed on dist/index.mjs:

ERROR in ./node_modules/rotur-sdk/dist/index.mjs 15:8
Module parse failed: Unexpected token (15:8)

rotur-sdk now goes through babel-loader with type: 'javascript/auto', which
keeps .mjs out of webpack's stricter ESM mode where the CommonJS interop the
rest of the bundle relies on is unavailable. This mirrors how
MistWarp/scratch-vm#10 resolved the identical break in the VM's own config. The
rule matches by pattern rather than resolved path, so a hoisted or symlinked
install still gets transpiled.

Testing

Rebased onto master after #4, which fixed the pre-existing
?? parse break that had kept this PR's build check red. All three steps the
Build workflow runs, locally on Node 24:

  • npm ci — succeeds
  • npm run build — succeeds
  • npm test — 16 suites, 48 passed, 1 skipped
  • npm run build-standalone-prod — succeeds, emits dist/standalone.html

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Deploying packagermistwarp with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81a33c2
Status: ✅  Deploy successful!
Preview URL: https://37de35ae.packagermistwarp.pages.dev
Branch Preview URL: https://mistwarp-forks.packagermistwarp.pages.dev

View logs

deploy.yml checked out MistWarp/scratch-render and linked it over whatever
was installed, but package.json asked for TurboWarp/scratch-render. Anything
not running that link step -- build.yml, the standalone artifact, a local
npm install -- compiled the packager against a different renderer than the
site ships. scratch-audio was TurboWarp's in both places, so the memory fix
in MistWarp/scratch-audio never reached the packager at all.

- scratch-audio and scratch-render now point at the MistWarp forks.
- npm run link and the deploy workflow both link all three engines, so the
  linked set matches the declared set.
- The lockfile is refreshed. It pinned scratch-vm at 86012dac; the engines
  now resolve to their current develop heads: scratch-vm f514cbcb,
  scratch-render ce8e30c, scratch-audio 2f2ad72.

Advancing scratch-vm pulls in rotur-sdk, which ships class fields in both
its ESM and CommonJS builds that webpack 4's parser cannot read, so the
build failed on dist/index.mjs. It now goes through babel-loader with
type: 'javascript/auto', matching how MistWarp/scratch-vm#10 resolved the
same break in the VM's own config.

Verified locally on Node 24, all three steps the Build workflow runs:
npm run build, npm test (16 suites, 48 passed) and
npm run build-standalone-prod.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Mistium
Mistium removed this pull request from stack #3 September 21, 2026 01:28
@Mistium
Mistium merged commit b1a7abf into master Sep 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant