File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -66,17 +66,21 @@ class BundleTrackerPlugin {
66
66
* @returns this
67
67
*/
68
68
_setParamsFromCompiler ( compiler ) {
69
- this . options = Object . assign ( { } , this . options , {
70
- path : compiler . options . output ?. path ?? process . cwd ( ) ,
71
- publicPath : compiler . options . output ?. publicPath ?? '' ,
72
- filename : 'webpack-stats.json' ,
73
- logTime : false ,
74
- relativePath : false ,
75
- integrity : false ,
76
- indent : 2 ,
77
- // https://www.w3.org/TR/SRI/#cryptographic-hash-functions
78
- integrityHashes : [ 'sha256' , 'sha384' , 'sha512' ] ,
79
- } ) ;
69
+ this . options = Object . assign (
70
+ { } ,
71
+ {
72
+ path : compiler . options . output ?. path ?? process . cwd ( ) ,
73
+ publicPath : compiler . options . output ?. publicPath ?? '' ,
74
+ filename : 'webpack-stats.json' ,
75
+ logTime : false ,
76
+ relativePath : false ,
77
+ integrity : false ,
78
+ indent : 2 ,
79
+ // https://www.w3.org/TR/SRI/#cryptographic-hash-functions
80
+ integrityHashes : [ 'sha256' , 'sha384' , 'sha512' ] ,
81
+ } ,
82
+ this . options ,
83
+ ) ;
80
84
81
85
if ( this . options . filename ?. includes ( '/' ) ) {
82
86
throw Error (
Original file line number Diff line number Diff line change 2
2
3
3
const output = { name : '' } ;
4
4
5
- Object . assign ( { } , output , { name : 'common' } ) ;
5
+ Object . assign ( output , { name : 'common' } ) ;
6
6
7
7
module . exports = output ;
You can’t perform that action at this time.
0 commit comments