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
{{ message }}
Repository navigation
Emotion plugin does not support disabling cssPropOptimization #691
Describe the bug
The babel emotion plugin includes a cssPropOptimization prop config. in 14.7.0 and earlier, @swc/plugin-emotion never applied this optimization. In later versions it is enabled with no way to disable.
Repro (This repro shows the behavior in 3 versions of the plugin as well as in the babel plugin)
Expected behavior
When cssPropOptimization is set to false, css props in JSX elements should be left untouched. Something like <HStack css={{height: '100%'}} should pass the object to the component untouched. This is how it works in the babel version of this plugin.
Activity