andrew
andrew
CDCloudflare Developers
Created by andrew on 4/11/2024 in #workers-help
How to use WASM with a worker?
The Use from JavaScript section of this page suggests to place an await at the top level of a js file: https://developers.cloudflare.com/workers/runtime-apis/webassembly/javascript/#use-from-javascript However, when I try to do this with my project, I get an error like this:
ERROR: Top-level await is currently not supported with the "iife" output format
ERROR: Top-level await is currently not supported with the "iife" output format
Does anyone know what I can try for this?
4 replies