Skip to content

Commit 5838f56

Browse files
committed
correct comment
1 parent ec736bf commit 5838f56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/optimize/CommonsChunkPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ The available options are:
213213
});
214214
}
215215

216-
// this is an entry point - bad
216+
/**
217+
* past this point only entry chunks are allowed to become commonChunks
218+
*/
217219
if(commonChunk.parents.length > 0) {
218220
compilation.errors.push(new Error("CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk (" + commonChunk.name + ")"));
219221
return;

0 commit comments

Comments
 (0)