#Bundling .wasm with Cloudflare adapter since v10

7 messages · Page 1 of 1 (latest)

timid pulsar
#

Hey folks, has anyone else run into issues with bundling .wasm for production with the v10 of the Cloudflare adapter? Something that I have deployed with previous versions of Astro and the adapter now go:

Unknown file extension ".wasm" for ~/src/dist/_worker.js/xmllint.44vaj5.wasm
#

I have wasmModuleImports on, and commenting the import of the wasm lets me build it without error

#

Wait I just realized it technically built it? This error comes after the

22:25:34 [vite] ✓ built in 29.63s
#

And there's a .wasm file in dist...

fluid elk
#

@mossy merlin

mossy merlin
#

@timid pulsar does that error come from astro build or from wrangler / cloudflare?

mossy merlin
#

I'm asking because our test suites for wasm testing do not have that issue.. So I think it might be a setup problem. Happy to look at it, if you can share a reproducible example