Skip to content

Commit 8ab190f

Browse files
committed
logging
1 parent aabb0a0 commit 8ab190f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎lib/Compiler.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ class Compiler extends Tapable {
148148
}
149149

150150
run(callback) {
151+
process.stdout.write("run\n");
152+
151153
if (this.running) return callback(new ConcurrentCompilationError());
152154

153155
const finalCallback = (err, stats) => {
@@ -192,6 +194,8 @@ class Compiler extends Tapable {
192194

193195
this.hooks.additionalPass.callAsync(err => {
194196
if (err) return finalCallback(err);
197+
process.stdout.write("additional pass\n");
198+
195199
this.compile(onCompiled);
196200
});
197201
});
@@ -232,6 +236,7 @@ class Compiler extends Tapable {
232236
}
233237

234238
runAsChild(callback) {
239+
process.stdout.write("runAsChild\n");
235240
this.compile((err, compilation) => {
236241
if (err) return callback(err);
237242

@@ -486,6 +491,7 @@ class Compiler extends Tapable {
486491
process.stdout.write("make\n");
487492

488493
this.hooks.make.callAsync(compilation, err => {
494+
process.stdout.write("make done\n");
489495
if (err) return callback(err);
490496
process.stdout.write("finished\n");
491497

0 commit comments

Comments
 (0)