-
-
Notifications
You must be signed in to change notification settings - Fork 140
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 importName
type confusion (string, bool, node)
#233
Conversation
Apparently `importName` can have many different types: styled-components#232 (comment) This commit ensures that the check whether the name is in the scope (bindings) does not break on plain strings. Closes: styled-components#232
The `babel-plugin-styled-components` introduced a bug in v1.10.3 which causes our builds to get stuck endlessly. This commit temporarily restricts the version range of the babel plugin to the safe versions until the bug is fixed upstream. See this PR and its linked issue for more details: styled-components/babel-plugin-styled-components#233
The `babel-plugin-styled-components` introduced a bug in v1.10.3 which causes our builds to get stuck endlessly. This commit temporarily restricts the version range of the babel plugin to the safe versions until the bug is fixed upstream. See this PR and its linked issue for more details: styled-components/babel-plugin-styled-components#233
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, makes sense I think. Thanks for looking into this!
@ZauberNerd I know this is a couple years later, but are you still around to talk about this? I'm confused by this line of code:
It seems to me that this will always evaluate to true. Either Should it be:
or maybe a |
@agriffis looks like you're correct and it was an oversight on my part. |
@ZauberNerd Thanks for the reply! Not sure yet about next steps on this, I think any change in this area would deserve additional tests to make sure it's working as intended. But I appreciate your following up to my question. |
Apparently
importName
can have many different types:#232 (comment)
This commit ensures that the check whether the name is in the scope
(bindings) does not break on plain strings.
Closes: #232