mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
c2362842c9
* fix(build): support deployed web worker graphs * fix(build): address worker parity review findings * fix(build): preserve web worker URL origins * test(e2e): cover deployed web workers * test(e2e): port upstream Cloudflare worker suite * fix(build): preserve worker asset semantics * fix(build): tolerate minimal resolved config mocks * test(worker): classify Vite-equivalent coverage
Next.js worker E2E port
This fixture is ported from Next.js
test/e2e/app-dir/worker
at commit 2fbeebbaca93e8f478d6b9b97a964ac09ec54faf.
The app, worker, WASM, PNG, and public asset files are copied from upstream. The vinext port makes only these harness adaptations:
- Next.js test utilities are expressed with the repository's shared Playwright fixtures.
vite.config.tsregisters vinext with@cloudflare/vite-pluginand resolves the already-locked@resvg/resvg-wasm@2.4.0.next.config.jsuses ESM because vinext production builds require an ESM project.- The deployment-token listener is scoped to worker-owned requests because vinext deliberately keeps ordinary application JavaScript on one unversioned native-ESM module identity.
- Mechanical formatting and narrow type/lint annotations follow vinext's checked-in test rules.