import-js/eslint-plugin-import

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

Open

#2,306 建立於 2021年11月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (4,946 star) (1,540 fork)batch import
enhancementhelp wanted

描述

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.

貢獻者指南