File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,8 @@ function ProgressBarPlugin() {
9
9
var stream = process . stderr ;
10
10
11
11
return new webpack . ProgressPlugin ( function ( percent , msg ) {
12
- if ( stream ) {
13
- stream . clearLine && stream . clearLine ( ) ;
14
- stream . cursorTo && stream . cursorTo ( 0 ) ;
15
- if ( msg && stream . write ) {
16
- stream . write ( colors . grey ( '[Bundler] ' ) + colors . green ( msg ) ) ;
17
- }
12
+ if ( stream && stream . write && msg ) {
13
+ stream . write ( colors . grey ( '[Bundler] ' ) + colors . green ( msg ) + '\r' ) ;
18
14
}
19
15
} ) ;
20
16
} ;
Original file line number Diff line number Diff line change @@ -7,12 +7,8 @@ function ProgressBarPlugin() {
7
7
var stream = process . stderr ;
8
8
9
9
return new webpack . ProgressPlugin ( function ( percent , msg ) {
10
- if ( stream ) {
11
- stream . clearLine && stream . clearLine ( ) ;
12
- stream . cursorTo && stream . cursorTo ( 0 ) ;
13
- if ( msg && stream . write ) {
14
- stream . write ( colors . grey ( '[Bundler] ' ) + colors . green ( msg ) ) ;
15
- }
10
+ if ( stream && stream . write && msg ) {
11
+ stream . write ( colors . grey ( '[Bundler] ' ) + colors . green ( msg ) + '\r' ) ;
16
12
}
17
13
} ) ;
18
14
} ;
You can’t perform that action at this time.
0 commit comments