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
All of the other content in is now gone, and the is unminified.
Additional information
This also happens with Bun.build, presumably because the CLI and programmatic API use the same code. However, the missing elements issue no longer happens if minify.whitespace is turned off and minify.syntax and minify.identifiers are turned on. The incorrect minification issue still happens in both cases.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.43+76800b049
What platform is your computer?
Darwin 24.2.0 arm64 arm
What steps can reproduce the bug?
Create a project with an
index.html
,style.css
andscript.ts
.Run
bun build --experimental-html --experimental-css --minify index.html --outdir dist
This will build all of the files and output them to the
dist/
directory.What is the expected behavior?
The expected output (unminified) is:
and the HTML should be minified properly, like so:
What do you see instead?
Instead, the output is:
All of the other content in is now gone, and the is unminified.
Additional information
This also happens with
Bun.build
, presumably because the CLI and programmatic API use the same code. However, the missing elements issue no longer happens ifminify.whitespace
is turned off andminify.syntax
andminify.identifiers
are turned on. The incorrect minification issue still happens in both cases.The text was updated successfully, but these errors were encountered: