Skip to content

Commit

Permalink
Pipe transforms errors through transformation pipelines
Browse files Browse the repository at this point in the history
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
  • Loading branch information
martinbigio authored and facebook-github-bot-6 committed Jan 6, 2016
1 parent 9490c2c commit 5a4ee0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packager/react-packager/src/JSTransformer/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5a4ee0b

Please sign in to comment.