Skip to content
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

webpackExports: ["namedExport"] is not supported for dynamic imports #2306

Open
emanueleperuffo opened this issue Nov 18, 2021 · 1 comment

Comments

@emanueleperuffo
Copy link

emanueleperuffo commented Nov 18, 2021

Webpack 5 has some new magic comments allowing better tree-shaking.
https://webpack.js.org/api/module-methods/#magic-comments

Currently, if a comment in the form /* webpackExports: ["namedExport"] */ is added to a dynamic import, eslint shows an error when checking with the import/dynamic-import-chunkname rule.

@ljharb
Copy link
Member

ljharb commented Nov 18, 2021

Sounds like we need to add support for this new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants