You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using bun build —experimental-html ./index.html, the script element in body would be removed, but in head would not. Behavior different than vite or webpack.
What version of Bun is running?
1.1.43
What platform is your computer?
Darwin 24.2.0 x86_64 i386
What steps can reproduce the bug?
When using
bun build —experimental-html ./index.html
, the script element in body would be removed, but in head would not. Behavior different than vite or webpack.Here is the repo to reproduce https://github.com/qinyuhang/bun-build-error
html_dist_not_contain_script
.bun install && bun run build
What is the expected behavior?
The
<script />
element in body should be preserved just like vite or webpack do.What do you see instead?
The
<script />
element in body was removed in the dist outputAdditional information
Script elements in head was preserved
The text was updated successfully, but these errors were encountered: