oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.27k stars 2.77k forks source link

importing wasm files returns path instead of module in runtime #12434

Open evanwashere opened 4 months ago

evanwashere commented 4 months ago

What version of Bun is running?

1.1.18

What platform is your computer?

No response

What steps can reproduce the bug?

import mod from “./file.wasm”

console.log(mod)

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

Original report: https://discord.com/channels/876711213126520882/1259882568908537937

noClaps commented 3 months ago

The issue persists in version 1.1.21