File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -140,14 +140,12 @@ module.exports = class SpeedMeasurePlugin {
140140 chalk . enabled = true ;
141141 if ( outputToFile ) {
142142 const writeMethod = fs . existsSync ( this . options . outputTarget )
143- ? fs . appendFile
144- : fs . writeFile ;
145- writeMethod ( this . options . outputTarget , output + "\n" , err => {
146- if ( err ) throw err ;
147- console . log (
148- smpTag ( ) + "Outputted timing info to " + this . options . outputTarget
149- ) ;
150- } ) ;
143+ ? fs . appendFileSync
144+ : fs . writeFileSync ;
145+ writeMethod ( this . options . outputTarget , output + "\n" ) ;
146+ console . log (
147+ smpTag ( ) + "Outputted timing info to " + this . options . outputTarget
148+ ) ;
151149 } else {
152150 const outputFunc = this . options . outputTarget || console . log ;
153151 outputFunc ( output ) ;
You can’t perform that action at this time.
0 commit comments