Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styled-components): Handle default import with named import syntax #239

Merged
merged 24 commits into from
Nov 26, 2023

Conversation

ciffelia
Copy link
Contributor

This fixes styled-components plugin doesn't work when styled-components is imported using import { default as a } syntax.

import { default as s } from 'styled-components'

const Foo = s.div`
  color: red;
`

@ciffelia ciffelia changed the title fix(styled-components): Fix named import handling fix(styled-components): Handle default import with named import syntax Nov 25, 2023
@kdy1 kdy1 self-assigned this Nov 25, 2023
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kdy1 kdy1 enabled auto-merge (squash) November 26, 2023 00:01
@kdy1 kdy1 merged commit 1e5e738 into swc-project:main Nov 26, 2023
6 checks passed
@ciffelia ciffelia deleted the fix-styled-components-default-import branch November 26, 2023 04:20
@kdy1 kdy1 assigned kdy1 and unassigned kdy1 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants