You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esbuild produces this output when running esbuild ... --legal-comments=inline:
.example {
--some-var:var(--tw-empty, );
}
body {
background-color: red;
}
Removing the /*!*/ /*!*/ nonsense is probably fine (we have to do it in Tailwind to preserve the whitespace between them in some overly aggressive minifiers), but I would at least expect the /!* I_need_this_comment */ comment to be preserved.
If you remove the this line, the comment is preserved as expected:
@evanw I saw that in the CHANGELOG there are some breaking for the next version. Can I ask you to release this as a fix so any libraries that have ~ in version can be upgraded? Thanks!
Given this input:
esbuild produces this output when running
esbuild ... --legal-comments=inline
:Removing the
/*!*/ /*!*/
nonsense is probably fine (we have to do it in Tailwind to preserve the whitespace between them in some overly aggressive minifiers), but I would at least expect the/!* I_need_this_comment */
comment to be preserved.If you remove the this line, the comment is preserved as expected:
.example { - --some-var: var(--tw-empty, /*!*/ /*!*/); } /*! I_need_this_comment */ body { background-color: red; }
Related: tailwindlabs/tailwindcss#6182
Thanks!
The text was updated successfully, but these errors were encountered: