Skip to content

Commit

Permalink
fix: Check if bestMatch exists before pop() (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
pisethx committed Dec 7, 2020
1 parent c17d755 commit ef82da9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ class ExtractCssChunksPlugin {
// no module found => there is a conflict
// use list with fewest failed deps
// and emit a warning
if (!bestMatch) break;
const fallbackModule = bestMatch.pop();

if (!this.options.ignoreOrder) {
Expand Down

0 comments on commit ef82da9

Please sign in to comment.