From 0250bbacbd3de9e0e9c689ecb3a181f5a2d9a611 Mon Sep 17 00:00:00 2001 From: JW Date: Sun, 17 Dec 2023 14:19:01 +0800 Subject: [PATCH] :pencil: update --- docs/rules/dynamic-import-chunkname.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/rules/dynamic-import-chunkname.md b/docs/rules/dynamic-import-chunkname.md index e7574dab8c..7d3f5ce660 100644 --- a/docs/rules/dynamic-import-chunkname.md +++ b/docs/rules/dynamic-import-chunkname.md @@ -88,12 +88,13 @@ The following patterns are valid: ); ``` -## `allowEmpty: true` +### `allowEmpty: true` If you want to allow dynamic imports without a webpackChunkName, you can set `allowEmpty: true` in the rule config. This will allow dynamic imports without a leading comment, or with a leading comment that does not contain a webpackChunkName. Given `{"allowEmpty": true}`: + ### valid The following patterns are valid: @@ -106,7 +107,7 @@ import( 'someModule', ); ``` - + ### invalid The following patterns are invalid: