diff --git a/docs/rules/dynamic-import-chunkname.md b/docs/rules/dynamic-import-chunkname.md index 69573a784c..8dd5a574aa 100644 --- a/docs/rules/dynamic-import-chunkname.md +++ b/docs/rules/dynamic-import-chunkname.md @@ -56,6 +56,13 @@ import( // webpackChunkName: "someModule" 'someModule', ); + +// chunk names are disallowed when eager mode is set +import( + /* webpackMode: "eager" */ + /* webpackChunkName: "someModule" */ + 'someModule', +) ``` ### valid @@ -86,12 +93,6 @@ The following patterns are valid: /* webpackChunkName: 'someModule' */ 'someModule', ); - - // chunk name is optional when using eager mode - import( - /* webpackMode: "eager" */ - 'someModule', - ); ``` ### `allowEmpty: true`