mirror of https://github.com/embarklabs/embark.git
early callback in compiler
This commit is contained in:
parent
bcb7c80758
commit
8e2af920b8
|
@ -32,7 +32,10 @@ class Compiler {
|
|||
return false;
|
||||
});
|
||||
|
||||
compiler.call(compiler, matchingFiles || [], function (err, compileResult) {
|
||||
if (!matchingFiles || !matchingFiles.length) {
|
||||
return callback();
|
||||
}
|
||||
compiler.call(compiler, matchingFiles, function (err, compileResult) {
|
||||
Object.assign(compiledObject, compileResult);
|
||||
callback(err, compileResult);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue