File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import webpack from 'webpack';
5
5
import sources from 'webpack-sources' ;
6
6
7
7
const { ConcatSource, SourceMapSource, OriginalSource } = sources ;
8
- const { Template, util : { createHash } } = webpack ;
8
+ const {
9
+ Template,
10
+ util : { createHash } ,
11
+ } = webpack ;
9
12
10
13
const NS = path . dirname ( fs . realpathSync ( __filename ) ) ;
11
14
@@ -97,7 +100,12 @@ class CssModule extends webpack.Module {
97
100
}
98
101
99
102
class CssModuleFactory {
100
- create ( { dependencies : [ dependency ] } , callback ) {
103
+ create (
104
+ {
105
+ dependencies : [ dependency ] ,
106
+ } ,
107
+ callback
108
+ ) {
101
109
callback ( null , new CssModule ( dependency ) ) ;
102
110
}
103
111
}
@@ -390,7 +398,11 @@ class MiniCssExtractPlugin {
390
398
const [ chunkGroup ] = chunk . groupsIterable ;
391
399
if ( typeof chunkGroup . getModuleIndex2 === 'function' ) {
392
400
modules . sort (
393
- ( a , b ) => ( chunkGroup . getModuleIndex2 ( a ) || 0 ) < ( chunkGroup . getModuleIndex2 ( b ) || 0 ) ? 1 : - 1
401
+ ( a , b ) =>
402
+ ( chunkGroup . getModuleIndex2 ( a ) || 0 ) <
403
+ ( chunkGroup . getModuleIndex2 ( b ) || 0 )
404
+ ? 1
405
+ : - 1
394
406
) ;
395
407
} else {
396
408
// fallback for older webpack versions
You can’t perform that action at this time.
0 commit comments