Skip to content

Commit a06f5df

Browse files
committed
feat: pass correct chunk
1 parent cf7b731 commit a06f5df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ class MiniCssExtractPlugin {
372372
}
373373

374374
getFilename(chunk, filename) {
375-
return this.isFunction(filename) ? filename(chunk) : filename;
375+
return this.isFunction(filename)
376+
? filename(chunk.chunk || chunk)
377+
: filename;
376378
}
377379

378380
isFunction(functionToCheck) {

0 commit comments

Comments
 (0)