Skip to content

Commit 56d2c92

Browse files
committed
fix($forEachChunkModule): fix typo where chunk was call cb
1 parent 75a49c1 commit 56d2c92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Here's the sort of CSS you can expect to serve:
9393
<!-- stylsheets that will be requested when import() on user navigation is called -->
9494
<script>
9595
window.__CSS_CHUNKS__ = {
96-
Foo: '/static/Foo.css',
97-
Bar: '/static/Bar.css'
96+
Foo: '/static/Foo.css',
97+
Bar: '/static/Bar.css'
9898
}
9999
</script>
100100
</body>

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function forEachChunkModule( chunk, cb ) {
3030

3131
// webpack >= 3.x.x
3232
if ( typeof chunk.forEachModule === 'function' ) {
33-
cb.forEachModule( cb );
33+
chunk.forEachModule( cb );
3434
}
3535
else {
3636
// webpack < 3.x.x

0 commit comments

Comments
 (0)