From 18f1fb20466fec4b7f080c193641fce1ef51927c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Tue, 5 Jan 2016 21:56:41 -0800 Subject: [PATCH] Pipe transforms errors through transformation pipelines Summary: public Fixes an issue on the transforms pipeline which caused not to pipe errors that occured on the external transformer to JSTransformer. Reviewed By: yungsters Differential Revision: D2806498 fb-gh-sync-id: c9347d1957a3a9320b3f177ff9b19bf3802087a0 --- react-packager/src/JSTransformer/worker.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/react-packager/src/JSTransformer/worker.js b/react-packager/src/JSTransformer/worker.js index 77a24938..ef4a529c 100644 --- a/react-packager/src/JSTransformer/worker.js +++ b/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(