File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,16 @@ You can however specify the name of the async chunk by passing the desired strin
235235 return ;
236236 }
237237
238- // what is this?
238+ /**
239+ * If we find a "targetchunk" that is also a normal chunk (meaning it is probably specified as an entry)
240+ * and the current target chunk comes after that and the found chunk has a runtime*
241+ * make that chunk be an 'affected' chunk of the current target chunk.
242+ *
243+ * To understand what that means take a look at the "examples/chunkhash", this basically will
244+ * result in the runtime to be extracted to the current target chunk.
245+ *
246+ * *runtime: the "runtime" is the "webpack"-block you may have seen in the bundles that resolves modules etc.
247+ */
239248 return allChunks . filter ( ( chunk ) => {
240249 const found = targetChunks . indexOf ( chunk ) ;
241250 if ( found >= currentIndex ) return false ;
You can’t perform that action at this time.
0 commit comments