Skip to content

Commit ef82da9

Browse files
authored
fix: Check if bestMatch exists before pop() (faceyspacey#294)
1 parent c17d755 commit ef82da9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ class ExtractCssChunksPlugin {
511511
// no module found => there is a conflict
512512
// use list with fewest failed deps
513513
// and emit a warning
514+
if (!bestMatch) break;
514515
const fallbackModule = bestMatch.pop();
515516

516517
if (!this.options.ignoreOrder) {

0 commit comments

Comments
 (0)