Fix CLI compilation callback calling (#7366)

This commit is contained in:
Vojtěch Štěpančík 2018-02-12 14:10:35 +01:00 committed by Henry Zhu
parent 4a2e1dbbc3
commit 88a0f52230

View File

@ -63,7 +63,7 @@ export function compile(filename, opts, callback) {
if (err) { if (err) {
if (commander.watch) { if (commander.watch) {
console.error(err); console.error(err);
return callback(null, { ignored: true }); return callback(null, null);
} else { } else {
return callback(err); return callback(err);
} }