Skip to content
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

bun build --experimental-html does not detect assets in .tsx files #15998

Open
marcospgp opened this issue Dec 26, 2024 · 0 comments
Open

bun build --experimental-html does not detect assets in .tsx files #15998

marcospgp opened this issue Dec 26, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@marcospgp
Copy link

What version of Bun is running?

latest canary at time of writing

What platform is your computer?

macos

What steps can reproduce the bug?

I'm running

bun build --experimental-html --experimental-css ./src/index.html --outdir ./build --watch

with this tag inside a .tsx file:

<img src="./assets/tnt.png" alt="bomb" />

the asset URL does not get detected, and the asset file does not get copied into the destination folder.

if I move the img tag to index.html, the asset gets copied as expected.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@marcospgp marcospgp added bug Something isn't working needs triage labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant