From cb74902dba2346e4aaee4d76a94d5f8bd509483b Mon Sep 17 00:00:00 2001 From: Ankit Sardesai Date: Wed, 1 May 2024 11:15:37 -0700 Subject: [PATCH] update docs --- docs/rules/dynamic-import-chunkname.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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`