Skip to content

Commit 336faab

Browse files
committed
rethrow compilation errors
fixes faceyspacey#76
1 parent f6bf410 commit 336faab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ module.exports.pitch = function(request) {
8181
childCompiler.runAsChild(function(err, entries, compilation) {
8282
if(err) return callback(err);
8383

84+
if(compilation.errors.length > 0) {
85+
return callback(compilation.errors[0]);
86+
}
8487
compilation.fileDependencies.forEach(function(dep) {
8588
this.addDependency(dep);
8689
}, this);

0 commit comments

Comments
 (0)