This repository was archived by the owner on Jun 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,24 @@ class ChunkManifestPlugin {
35
35
) {
36
36
if ( c . id in manifest ) return manifest ;
37
37
38
- const hasRuntime = typeof c . hasRuntime === "function"
39
- ? c . hasRuntime ( )
40
- : c . entry ;
38
+ const hasRuntime =
39
+ typeof c . hasRuntime === "function" ? c . hasRuntime ( ) : c . entry ;
41
40
42
41
if ( hasRuntime ) {
43
42
manifest [ c . id ] = undefined ;
44
43
} else {
45
- manifest [
46
- c . id
47
- ] = mainTemplate . applyPluginsWaterfall ( "asset-path" , filename , {
48
- hash : hash ,
49
- chunk : c
50
- } ) ;
44
+ manifest [ c . id ] = mainTemplate . applyPluginsWaterfall (
45
+ "asset-path" ,
46
+ filename ,
47
+ {
48
+ hash : hash ,
49
+ chunk : c
50
+ }
51
+ ) ;
51
52
}
52
53
return c . chunks . reduce ( registerChunk , manifest ) ;
53
- } , { } ) ;
54
+ } ,
55
+ { } ) ;
54
56
55
57
oldChunkFilename = this . outputOptions . chunkFilename ;
56
58
this . outputOptions . chunkFilename = "__CHUNK_MANIFEST__" ;
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ class InlineChunkManifestHtmlWebpackPlugin {
19
19
throw new TypeError ( "Extract manifest must be boolean" ) ;
20
20
}
21
21
22
- this . extractManifest = options . extractManifest != null
23
- ? options . extractManifest
24
- : true ;
22
+ this . extractManifest =
23
+ options . extractManifest != null ? options . extractManifest : true ;
25
24
26
25
const manifestPlugins = options . manifestPlugins ;
27
26
@@ -38,9 +37,10 @@ class InlineChunkManifestHtmlWebpackPlugin {
38
37
} )
39
38
] ;
40
39
41
- this . plugins = manifestPlugins && manifestPlugins . length
42
- ? manifestPlugins
43
- : defaultManifestPlugins ;
40
+ this . plugins =
41
+ manifestPlugins && manifestPlugins . length
42
+ ? manifestPlugins
43
+ : defaultManifestPlugins ;
44
44
}
45
45
46
46
apply ( compiler ) {
You can’t perform that action at this time.
0 commit comments