Skip to content

Commit 5e27345

Browse files
authored
Update code-splitting-libraries.md
Explain why multiple entry doesn't work in the case of code splitting library.
1 parent c004861 commit 5e27345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/code-splitting-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = function(env) {
7575
}
7676
```
7777

78-
On running `webpack` now, we see that two bundles have been created. If you inspect these though, you will find that the code for `moment` is present in both the files!
78+
On running `webpack` now, we see that two bundles have been created. If you inspect these though, you will find that the code for `moment` is present in both the files! The reason for that is `moment` is a dependency of the main application ( e.g. index.js ) and each entry point will bundle its own dependencies.
7979

8080
It is for this reason, that we will need to use the [CommonsChunkPlugin](/plugins/commons-chunk-plugin).
8181

0 commit comments

Comments
 (0)