Skip to content

Commit

Permalink
fix: fix cannot read property 'write' of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Mar 31, 2018
1 parent bf3aa91 commit ccb1d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
// Started
this.state.start = process.hrtime();
if (this.options.minimal) {
this.stream.write(`Compiling ${this.options.name}\n`);
this.options.stream.write(`Compiling ${this.options.name}\n`);
}
delete this.state.time;
} else if (wasRunning && !isRunning) {
// Finished
const time = process.hrtime(this.state.start);
if (this.options.minimal) {
this.stream.write(
this.options.stream.write(
`Compiled ${this.options.name} in ${prettyTime(this.state.time)}\n`
);
} else {
this.logUpdate.clear();
if (this.options.compiledIn) {
process.stdout.write(
this.options.stream.write(
`${[
TICK,
this.options.name,
Expand Down

0 comments on commit ccb1d65

Please sign in to comment.