import-js/eslint-plugin-import
webpackExports: ["namedExport"] is not supported for dynamic imports
開放
#2,306 建立於 2021年11月18日
enhancementhelp wanted
倉庫指標
- 星標
- (5,940 顆星)
- PR 合併指標
- (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.