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 @@ -142,7 +142,7 @@ class MiniCssExtractPlugin {
142
142
) ;
143
143
}
144
144
145
- module . buildInfo = module . buildInfo || { assets : { } } ;
145
+ module . buildInfo = module . buildInfo || { } ;
146
146
module . buildInfo . assets = {
147
147
...module . buildInfo . assets ,
148
148
...assets ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export function pitch(request) {
78
78
) ;
79
79
80
80
let source ;
81
- let assets = { } ;
81
+ const assets = { } ;
82
82
childCompiler . hooks . afterCompile . tap ( pluginName , ( compilation ) => {
83
83
source =
84
84
compilation . assets [ childFilename ] &&
@@ -87,7 +87,7 @@ export function pitch(request) {
87
87
// Collect assets from modules
88
88
compilation . modules . forEach ( ( module ) => {
89
89
if ( module . buildInfo && module . buildInfo . assets ) {
90
- assets = { ... assets , ... module . buildInfo . assets } ;
90
+ Object . assign ( assets , module . buildInfo . assets ) ;
91
91
}
92
92
} ) ;
93
93
You can’t perform that action at this time.
0 commit comments