oven-sh / bun

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

1.1.22 Broke some exports #13327

Closed xoxoxo closed 1 month ago

xoxoxo commented 2 months ago

What version of Bun is running?

1.1.22-canary.96+df33f2b2a

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

For some reasons 1.1.22 broke bundling with webpack (same with any newer version) - im bundling packages for node/bun ssr (react and webpack).

Screenshot 2024-08-15 at 14 03 15

What is the expected behavior?

Well it should work just fine.

What do you see instead?

Use 1.1.21.

Additional information

No response

github-actions[bot] commented 2 months ago

Hello @xoxoxo. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro will be closed if they have no activity within 3 days.

xoxoxo commented 2 months ago

@Jarred-Sumner https://replit.com/@xo1337/Bun here is repo This repo works fine inside replit cause bun version there is set to 1.1.21 which is the working one but if I/you download it and then for example test it locally with newest bun which is 1.1.24 then it crashes Screenshot 2024-08-16 at 12 39 42

bun install or npm install bun run build or npm run build bun run index.ts then go to localhost:3000

(loadables svg etc are not needed in order to crash it but included for full setup just in case)