oven-sh / bun

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

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

Open evanwashere opened 2 months ago

evanwashere commented 2 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 1 month ago

The issue persists in version 1.1.21