import-js/eslint-plugin-import
GitHub で見るwebpackExports: ["namedExport"] is not supported for dynamic imports
Open
#2,306 opened on 2021年11月18日
enhancementhelp wanted
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
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.