Closed imechZhangLY closed 1 month ago
As I see, it's not related to Griffel itself. Our code generates proper CSS:
I checked the repro and it seems to be related to the used minifier (UglifyJs), as once this line is removed:
There are no errors anymore. Considering that UglifyJs should not be used in production, closing the issue.
UglifyJS is no longer maintained and should not be used in production https://github.com/mishoo/UglifyJS/issues/3156#issuecomment-392943058
Bug description
We are experiencing an issue where certain CSS styles are not functioning correctly in our web application after updating the Edge browser to version 129.0.279.52. We have identified a “SyntaxError” occurring when calling insertRule(). The error appears to be caused by a CSS rule with multiple closing braces, such as “.f143d684{width:calc(100% - 6.9rem);};}”.
System information
Edge: 129.0.279.52 @griffel/react: 1.5.25
Reproduce steps
You can reproduce this bug by downloading https://github.com/imechZhangLY/griffel-error-demo and following the instructions.
npm run build
.index.html
in thedist
folder using Edge version 129.0.279.52 or higher.