Open gregorjan opened 1 year ago
When using named import from styled-components both babel and swc plugins are not used.
Actually looking at your sandbox, it looks like only the button using the named import worked... I wonder if the plugin can handle one or the other but not both.
When using named import from styled-components both babel and swc plugins are not used.
Funnily enough in codesandbox the behavior is exact opposite
Environment
System:
Binaries:
npmPackages:
Reproduction
https://codesandbox.io/p/sandbox/jolly-haze-sf21k4
Steps to reproduce
Use babel-plugin-styled-components and named import from styled-components package
Expected Behavior
displayName is correctly added to class
Actual Behavior
displayName is not added to class