-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Enhancement Proposal: dynamic imports #344
Comments
For reference, at my place of work, we're using |
My state is negative about supporting stage 3. There are some reasons.
|
@mysticatea In general, I agree. This feels like a special case to me because of Webpack. Personally, I think it doesn't feel great to have to use another parser to get code splitting in such a ubiquitous tool. |
Doesn't webpack support |
Yeah, it's also possible to use |
Would it be possible to make espree an acorn plugin? Then you could just use acorn with eslint and use any plugin you wanted. |
Also 👎 Our position has always been that using experimental features requires using Babel. Babel does a really good job at supporting them, and as long as Babel-ESLint exists, I don't think we should change our policy on this. |
With 2 👎s from TSC members, in going to close this. |
Should a new issue be opened now that dynamic imports are at Stage 4 (tc39/proposal-dynamic-import#78)? |
@tschaub espree supports dynamic imports since v6.1.0, if the Ref #415 |
Thanks, @mdjermanovic. Different subject, but I’m curious if there is discussion somewhere about why the default for |
@tschaub It's been discussed many times in the eslint/eslint repo (and we've had proponents both for keeping |
Now that dynamic imports are now stage 3 and are used by Webpack v2 for code splitting, I'd like to propose we add support for this in Espree/ESLint behind an option like
experimentalDynamicImport: true
.An Acorn plugin already exists, and it looks like it's well used: https://www.npmjs.com/package/acorn-dynamic-import
The text was updated successfully, but these errors were encountered: