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

lineLimit + bundle breaks CSS? #3286

Closed
gmarinov opened this issue Aug 5, 2023 · 0 comments
Closed

lineLimit + bundle breaks CSS? #3286

gmarinov opened this issue Aug 5, 2023 · 0 comments

Comments

@gmarinov
Copy link

gmarinov commented Aug 5, 2023

I've posted an example with a deliberately short lineLimit here:

https://esbuild.github.io/try/#YgAwLjE4LjE3AHsgYnVuZGxlOiB0cnVlLCBsaW5lTGltaXQ6IDM4LCBvdXRkaXI6ICJidWlsZCIsIGxvYWRlcjogeyAnLnN2Zyc6ICdmaWxlJyB9IH0AAGVudHJ5LmpzeABpbXBvcnQgIi4vZW50cnkuY3NzIgoAZQBlbnRyeS5jc3MALmNsYXNzIHsgYmFja2dyb3VuZDogdXJsKCIuL2Euc3ZnIil9CkBmb250LWZhY2V7c3JjOnVybCgiLi9hLnN2ZyIpIGZvcm1hdCgiZW90IiksdXJsKCcuL2Euc3ZnIycpIGZvcm1hdCgid29mZjIiKSx1cmwoIi4vYS5zdmc/IikgZm9ybWF0KCJ3b2ZmIiksdXJsKC4vYS5zdmcpIGZvcm1hdCgidHJ1ZXR5cGUiKSx1cmwoIi4vYS5zdmciKSBmb3JtYXQoInN2ZyIpfQouYW5vdGhlciB7IAogIGJhY2tncm91bmQ6IHVybCgiLi9iLnN2ZyIpCn0AAGEuc3ZnADxzdmcgLz4AAGIuc3ZnADxzdmcgLz4

Screenshot 2023-08-05 at 02 17 40

expected: url() asset references to always be ./a-T4DXLJPC.svg or ./b-T4DXLJPC.svg
actual: references for both assets change to a sequence of characters, e.g. url(0_mFGA3eetotCSwsA00000002) etc.
esbuild: 0.18.16 / 0.18.17

my project imports some pre-minified CSS files with excessively long lines, so any line limit breaks the bundled CSS.

if I take bundle: true out, then it appears to work?

Screenshot 2023-08-05 at 02 23 50
@evanw evanw closed this as completed in 441d6df Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant