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
Add support for dynamic imports #3457
Comments
Thanks for the report! We haven't implemented support for dynamic imports, but we plan to (it definitely satisfies our policy on new language features). That makes this more of a feature request than a bug report, so I've modified the issue's title a bit--hope you don't mind. If you (or anyone else) would like to try implementing this, then I'd gladly give guidance! |
@jugglinmike Considering this is an es2020 proposal, how would you envision somone be able to toggle this feature? I'm assuming there would be an I may look into implementing support for this specific proposal as it would help up quite a bit. |
|
I've updated our submodule for Test262 so that we have better coverage for the new language features. I've also created a tracking branch for a new minor release; that's where we should land new features. |
JSHint version 2.13.0, released today, includes support for dynamic imports. Be sure to update your configuration to opt in to the new language feature via |
Using Visual Studio Code 1.43.2
Extension: "dbaeumer.jshint" using global installation of jshint from npm
JSHint Installed: 2.11.0@npm
Expected Behaviour: Recognize
import()
as a function.Actual Behaviour
JSHint doesn't recognize
as a function and throws E053 and E021.
This function is used in importing modules for scripts doesn't end with ".mjs".
More info about can be seen in this MDN page.
I don't know if this function is in proposals, it just works in major browsers (Firefox,Chrome, etc.) and node.js.
Config Values
The text was updated successfully, but these errors were encountered: