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
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.
quantizor
changed the title
When using named import from styled-components both babel and swc plugins are ignored.
redundant imports cause default-export version to not be transformed
Jun 23, 2023
quantizor
transferred this issue from styled-components/styled-components
Jun 23, 2023
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
The text was updated successfully, but these errors were encountered: