import-js/eslint-plugin-import
在 GitHub 查看webpackExports: ["namedExport"] is not supported for dynamic imports
Open
#2,306 创建于 2021年11月18日
enhancementhelp wanted
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
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.