Skip to content

Commit

Permalink
fix($forEachChunkModule): fix typo where chunk was call cb
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jul 27, 2017
1 parent 75a49c1 commit 56d2c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Here's the sort of CSS you can expect to serve:
<!-- stylsheets that will be requested when import() on user navigation is called -->
<script>
window.__CSS_CHUNKS__ = {
Foo: '/static/Foo.css',
Bar: '/static/Bar.css'
Foo: '/static/Foo.css',
Bar: '/static/Bar.css'
}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function forEachChunkModule( chunk, cb ) {

// webpack >= 3.x.x
if ( typeof chunk.forEachModule === 'function' ) {
cb.forEachModule( cb );
chunk.forEachModule( cb );
}
else {
// webpack < 3.x.x
Expand Down

0 comments on commit 56d2c92

Please sign in to comment.