Skip to content

lineLimit + bundle breaks CSS? #3286

@gmarinov

Description

@gmarinov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions