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
<!doctype html><html><body>
test
<scriptsrc="./app.ts" type="module"></script></body></html>
If there is no <head></head> element inside ./index.html then in dist/index.html there is no
<scriptsrc="./app.ts" type="module"></script>
Additionally if there is head element inside ./index.html and script element is in body, then after running $ Bun build ./index.html --outdir=dist script element is being moved to head element.
What is the expected behavior?
After running $ Bun build ./index.html --outdir=dist html script element in dist/index.html should be in the same place where it was in ./index.html. So if it was in header, it should be in header. If it was inside body, it should stay there.
<scriptsrc="./app.ts" type="module"></script>
What do you see instead?
dist/index.html
<!doctype html><html><body>
test
</body></html>
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.2-canary.3+26d3688e5
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
Run
$ Bun build ./index.html --outdir=dist
If there is no
<head></head>
element inside ./index.html then in dist/index.html there is noAdditionally if there is head element inside ./index.html and script element is in body, then after running
$ Bun build ./index.html --outdir=dist
script element is being moved to head element.What is the expected behavior?
After running
$ Bun build ./index.html --outdir=dist
html script element in dist/index.html should be in the same place where it was in ./index.html. So if it was in header, it should be in header. If it was inside body, it should stay there.What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: