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
Because we are currently using regex to match imports, determining whether an import is in a comment (or in a string) is near impossible, for example:
/*
import colors from '../colors'
*/
we need a solid way to detect they are in a comment block.
I've got a task to look at the cost of using babel to parse files instead of regex matching for imports, as it would allow us to be way more reliable about edge case matches. Will update this issue once I have a clear idea of the cost/benefits of moving to full AST parsing.
for example a file that looks like
will try to include both
colors
andDropdown
in the codesandbox when onlyDropdown
is being used.The text was updated successfully, but these errors were encountered: