File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class MiniCssExtractPlugin {
147
147
) ;
148
148
}
149
149
150
- module . buildInfo = module . buildInfo || { assets : { } } ;
150
+ module . buildInfo = module . buildInfo || { } ;
151
151
module . buildInfo . assets = {
152
152
...module . buildInfo . assets ,
153
153
...assets ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export function pitch(request) {
76
76
) ;
77
77
78
78
let source ;
79
- let assets = { } ;
79
+ const assets = { } ;
80
80
childCompiler . hooks . afterCompile . tap ( pluginName , ( compilation ) => {
81
81
source =
82
82
compilation . assets [ childFilename ] &&
@@ -85,7 +85,7 @@ export function pitch(request) {
85
85
// Collect assets from modules
86
86
compilation . modules . forEach ( ( module ) => {
87
87
if ( module . buildInfo && module . buildInfo . assets ) {
88
- assets = { ... assets , ... module . buildInfo . assets } ;
88
+ Object . assign ( assets , module . buildInfo . assets ) ;
89
89
}
90
90
} ) ;
91
91
You can’t perform that action at this time.
0 commit comments