Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amsardesai committed May 1, 2024
1 parent 45a3e23 commit cb74902
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/rules/dynamic-import-chunkname.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ import(
// webpackChunkName: "someModule"
'someModule',
);

// chunk names are disallowed when eager mode is set
import(
/* webpackMode: "eager" */
/* webpackChunkName: "someModule" */
'someModule',
)
```

### valid
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit cb74902

Please sign in to comment.