-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
False positives #8
Comments
Hmm we can make it something like |
Nah, imagine a multiline string with JS code ;-) We'll never fix all the issues here, and likely make many new ones ;-) I think we should just document it, and I'm going to try to use AST to find actual import positions and transpile them in place with rewrite-imports. |
Lol okay, pick your battles I guess 😆 |
Merged
lukeed
pushed a commit
that referenced
this issue
Oct 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a few false positive cases, where the library replaces imports where it shouldn't. But I'm not sure trying to fix that will be in the scope of the library. Probably I'll just allow
imports
only at the beginning of the file — they supposed to be hoisted anyway.The text was updated successfully, but these errors were encountered: