-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fn.toString() should return author time code instead of optimized code and bun run, bun build, bun build --minify should log the same. #10488
Comments
Still actual for bun v1.1.13 |
@Jarred-Sumner this bug causes runtime inconsistency with node.js runtime. So, in some cases it's blocker for replace node to bun where you have to use fn.toString() functionality. For example dynamically generate js code for submitting it via api |
|
Duplicate of #3248 (you should 👍 that issue). This might be fixed for |
What version of Bun is running?
1.1.4+fbe2fe0c3
What platform is your computer?
Microsoft Windows NT 10.0.19044.0 x64
What steps can reproduce the bug?
What is the expected behavior?
it should like this
What do you see instead?
I get optimized code.
As you can see,
bun build
without--minify flag
works fine as node and browser. Butbun run
andbun build --minify
just behave very differently.Additional information
No response
The text was updated successfully, but these errors were encountered: