@@ -48,7 +48,7 @@ class BundleTrackerPlugin {
4848 /** @type {Options } */
4949 this . options = options ;
5050 /** @type {Contents } */
51- this . output = {
51+ this . contents = {
5252 status : 'initialization' ,
5353 assets : { } ,
5454 chunks : { } ,
@@ -105,17 +105,17 @@ class BundleTrackerPlugin {
105105 * Write bundle tracker stats file
106106 */
107107 _writeOutput ( contents ) {
108- Object . assign ( this . output , contents , {
109- assets : mergeObjectsAndSortKeys ( this . output . assets , contents . assets ) ,
110- chunks : mergeObjectsAndSortKeys ( this . output . chunks , contents . chunks ) ,
108+ Object . assign ( this . contents , contents , {
109+ assets : mergeObjectsAndSortKeys ( this . contents . assets , contents . assets ) ,
110+ chunks : mergeObjectsAndSortKeys ( this . contents . chunks , contents . chunks ) ,
111111 } ) ;
112112
113113 if ( this . options . publicPath ) {
114- this . output . publicPath = this . options . publicPath ;
114+ this . contents . publicPath = this . options . publicPath ;
115115 }
116116
117117 fs . mkdirSync ( this . outputTrackerDir , { recursive : true , mode : 0o755 } ) ;
118- fs . writeFileSync ( this . outputTrackerFile , JSON . stringify ( this . output , null , this . options . indent ) ) ;
118+ fs . writeFileSync ( this . outputTrackerFile , JSON . stringify ( this . contents , null , this . options . indent ) ) ;
119119 }
120120 /**
121121 * Compute hash for a content
0 commit comments