Skip to content

Commit cb74902

Browse files
committed
update docs
1 parent 45a3e23 commit cb74902

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/rules/dynamic-import-chunkname.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ import(
5656
// webpackChunkName: "someModule"
5757
'someModule',
5858
);
59+
60+
// chunk names are disallowed when eager mode is set
61+
import(
62+
/* webpackMode: "eager" */
63+
/* webpackChunkName: "someModule" */
64+
'someModule',
65+
)
5966
```
6067

6168
### valid
@@ -86,12 +93,6 @@ The following patterns are valid:
8693
/* webpackChunkName: 'someModule' */
8794
'someModule',
8895
);
89-
90-
// chunk name is optional when using eager mode
91-
import(
92-
/* webpackMode: "eager" */
93-
'someModule',
94-
);
9596
```
9697

9798
### `allowEmpty: true`

0 commit comments

Comments
 (0)