Open shellscape opened 7 months ago
This https://github.com/resendlabs/react-email/blob/3be21ad8a8f073d4e1a61c3ee94d40522c769674/patches/postcss-css-variables%400.19.0.patch#L4 seems to be a patch for the issue.
Here's an additional reproduction set:
Input: .xl\\:bg-green-500{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity));}
Expected: .xl\\:bg-green-500{background-color:rgb(34 197 94 / 1);}
Actual: .xl\\:bg-green-500{background-color:undefined}.xl\\:bg-green-500:bg-green-500{background-color:rgb(34 197 94/1)}
Consider the following CSS:
The output from running the plugin is:
The plugin seems to have an issue with escaping, or a variable directly following escaping.