Skip to content

Commit c3d130a

Browse files
authored
Merge pull request #1 from iroy2000/iroy2000-update-code-splitting-lib-md
Update code-splitting-libraries.md
2 parents c004861 + 5e27345 commit c3d130a

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)