Minimal repro here: https://webassembly.studio/?f=i7lefl19ym9 Looks like it has to do with the parser treating default exports as regular exports.