diff --git a/packager/react-packager/src/JSTransformer/worker.js b/packager/react-packager/src/JSTransformer/worker.js index 77a24938e..ef4a529c9 100644 --- a/packager/react-packager/src/JSTransformer/worker.js +++ b/packager/react-packager/src/JSTransformer/worker.js @@ -32,6 +32,11 @@ function internalTransforms(sourceCode, filename, options) { } function onExternalTransformDone(data, callback, error, externalOutput) { + if (error) { + callback(error); + return; + } + var result; if (data.options.enableInternalTransforms) { result = internalTransforms(