File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " extract-css-chunks-webpack-plugin" ,
3
- "version" : " 3.2.0" ,
3
+ "version" : " 3.2.1-alpha. 0" ,
4
4
"author" : " James Gillmore <james@faceyspacey.com>" ,
5
5
"contributors" : [
6
6
" Zack Jackson <zack@ScriptedAlchemy.com> (https://github.com/ScriptedAlchemy)"
Original file line number Diff line number Diff line change @@ -427,6 +427,9 @@ class ExtractCssChunks {
427
427
if ( node && node . use && Array . isArray ( node . use ) ) {
428
428
const isMiniCss = node . use . some ( ( l ) => {
429
429
const needle = l . loader || l ;
430
+ if ( typeof l === 'function' ) {
431
+ return false ;
432
+ }
430
433
return needle . includes ( pluginName ) ;
431
434
} ) ;
432
435
if ( isMiniCss ) {
@@ -436,6 +439,9 @@ class ExtractCssChunks {
436
439
if ( node && node . loader && Array . isArray ( node . loader ) ) {
437
440
const isMiniCss = node . loader . some ( ( l ) => {
438
441
const needle = l . loader || l ;
442
+ if ( typeof l === 'function' ) {
443
+ return false ;
444
+ }
439
445
return needle . includes ( pluginName ) ;
440
446
} ) ;
441
447
if ( isMiniCss ) {
You can’t perform that action at this time.
0 commit comments