Skip to content

fix(deploy): keep framework Worker Wasm imports as Wasm modules - #536

Closed
Pleasurecruise wants to merge 1 commit into
voidzero-dev:mainfrom
Pleasurecruise:fix/framework-wasm-modules
Closed

Pleasurecruise wants to merge 1 commit into
voidzero-dev:mainfrom
Pleasurecruise:fix/framework-wasm-modules

Conversation

@Pleasurecruise

@Pleasurecruise Pleasurecruise commented Oct 21, 2026 •

Copy link
Copy Markdown

prepareBundledBuildOutput now keeps .wasm imports external and emits each file beside the bundle, so copyBundle uploads it with the wasm module type instead of Vite bundling it as ES module integration.

Test

  • New unit test in cf-build-output.test.ts: static and dynamic .wasm imports (including a wasm-bindgen-style wbg import and the same file from two modules) become two wasm modules and pass cf dry-run. Fails without the fix.
  • vp test run packages/void/test/unit/cf-build-output.test.ts and vp run --filter ./packages/void typecheck pass.
  • Verified against a real SvelteKit app using @resvg/resvg-wasm.

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