Workaround for TypeScript WASM typing issues
mainDirectly importing WASM files (e.g., import ... from "./module.wasm") may result in broken TypeScript typing because the plugin cannot declare a module with Record<string, any> as its named export map.
To resolve this, use an asterisk import combined with a type assertion to the known type of your WASM module:
import * as wasmModule from "./module.wasm";
// Use type assertion if necessary
const wasm = wasmModule as MyWasmModuleType;