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

feat: don't consider ns import as dynamic #284

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

intrnl
Copy link
Contributor

@intrnl intrnl commented Nov 2, 2023

Fixes #283

@intrnl
Copy link
Contributor Author

intrnl commented Nov 2, 2023

Need to add a test case for styles[foo()] and styles["foo--bar"] (since we are dealing with CSS modules after all)

Comment on lines +109 to +115
(!expr.computed ||
!isDynamic(path.get("property"), {
checkMember,
checkTags,
checkCallExpressions,
native,
}))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me know if this code specifically needs any adjustments

@ryansolid
Copy link
Owner

Interesting.. since we know it is import * as symbol it can't be reactive. Cool. Thanks

@ryansolid ryansolid merged commit d3c7205 into ryansolid:main Nov 22, 2023
1 check failed
@intrnl intrnl deleted the feat/prevent-import-ns-effects branch November 22, 2023 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't consider namespace imports to be dynamic expression
2 participants