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

The bundler adds a backslash after each escape sequence in css strings. #16572

Open
afranchuk opened this issue Jan 21, 2025 · 1 comment
Open
Labels
bug Something isn't working css CSS parser, bundler-related

Comments

@afranchuk
Copy link

What version of Bun is running?

1.1.45+196621f25

What platform is your computer?

Linux 6.12.9_1 x86_64 unknown

What steps can reproduce the bug?

/* repro.css */
.foo {
    content: "\2b";
}

Run bun build --experimental-css repro.css.

What is the expected behavior?

Output should be

/* repro.css */
.foo {
  content: "+";
}

What do you see instead?

Output is

/* repro.css */
.foo {
  content: "+\\";
}

Additional information

No response

@afranchuk afranchuk added bug Something isn't working needs triage labels Jan 21, 2025
@afranchuk
Copy link
Author

afranchuk commented Jan 21, 2025

I'm quite sure this commented-out continue is the issue:

// continue;

@Electroid Electroid added css CSS parser, bundler-related and removed needs triage labels Jan 21, 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 css CSS parser, bundler-related
Projects
None yet
Development

No branches or pull requests

2 participants