-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support for dynamic imports #700
Comments
The I agree that |
Thanks. Using Leaving open as a request to support a new |
just making a note: would also like to add to the |
Also, why make a new rule for this when we can nest it as an option under |
I think it's pretty easy to ban |
@ljharb Do you mean banning with an expression in it? const foopath = './foo';
const foo = await import(foopath); |
sure, you could do that too. |
#1093 added |
https://github.com/tc39/proposal-dynamic-import (stage 3)
This is currently recognized as invalid syntax:
Parsing error: Unexpected token import
.Also probably need to add a rule similar to
no-dynamic-require
as well.The text was updated successfully, but these errors were encountered: