You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1:1 error dynamic imports require a leading comment in the form /* webpackChunkName: "[0-9a-zA-Z-_/.]+",? */ import/dynamic-import-chunkname
✖ 1 problem (1 error, 0 warnings)
This rule was originally written when the only magic comment was webpackChunkName. Sounds like it needs to be updated to include newer webpack features.
I do not know if this is inside the scope of this issue, but it appears that this rules also does not allow [request] or [index] which is also supported in webpackChunkName
Currently have to disable the rule the places where my code base uses them.
dynamic-import-chunkname
rule does not handlewebpackInclude
/webpackExclude
comments correctly..eslintrc.js
:index.js
Output:
eslint
6.0.1
eslint-plugin-import
2.18.0
Minimal reproducible example: https://github.com/vkrol/eslint-plugin-import-webpack-comment-with-regex-bug
The text was updated successfully, but these errors were encountered: