Skip to content

Commit bc32777

Browse files
author
sakhisheikh
committed
sakhisheikh
docs(config): (reworded) Example 3 - custom vendor chunk using RegEx
1 parent 759a67a commit bc32777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/plugins/split-chunks-plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ W> This might result in a large chunk containing all external packages. It is re
348348

349349
### Split Chunks: Example 3
350350

351-
Create a `custom vendors` chunk, which includes only those `node_modules` from the whole application which passes the RegEx Test
351+
Create a `custom vendor` chunk, which contains certain `node_modules` packages matched by `RegExp`.
352352

353353
__webpack.config.js__
354354

@@ -369,4 +369,4 @@ module.exports = {
369369
};
370370
```
371371

372-
T> This will result into a vendor chunk containing desired libraries provided in RegEx pattern. A better understanding of chunks can be visualized by [webpack-visualizer](https://chrisbateman.github.io/webpack-visualizer/).
372+
T> This will result in splitting `react` and `react-dom` into a separate chunk.

0 commit comments

Comments
 (0)