From 340c8f2ade59c8c3f89ceff1eac736d8004ec236 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 69573a784..8dd5a574a 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`