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

css parsing is merging two unrelated flex class selectors in one #16596

Open
triptu opened this issue Jan 22, 2025 · 0 comments
Open

css parsing is merging two unrelated flex class selectors in one #16596

triptu opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@triptu
Copy link

triptu commented Jan 22, 2025

What version of Bun is running?

1.1.45+196621f25

What platform is your computer?

Darwin 24.1.0 arm64 arm

What steps can reproduce the bug?

This is regarding bundling with index.html file as entry point. Create a styles.css with below content which is linked in index.html.

.flexrow {
	flex-direction: row;
}

.flexcol {
	flex-direction: column;
}

.hello {
	flex-wrap: wrap;
}

.world {
	flex-wrap: nowrap;
}

Run build -

bun build ./index.html --outdir=dist --experimental-html --experimental-css

What is the expected behavior?

The generated build file should have the same css as defined.

What do you see instead?

The generated style file in the dist folder has the below content which is not correct.

.flexrow, .flexcol {
  flex-direction: row;
}

.hello, .world {
  flex-wrap: wrap;
}

Additional information

No response

@triptu triptu added bug Something isn't working needs triage labels Jan 22, 2025
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