[ReactNative] Do flow check when running packager

This commit is contained in:
Spencer Ahrens
2015-04-07 21:50:24 -07:00
parent 220e116dce
commit a1ec752019
6 changed files with 117 additions and 14 deletions

View File

@@ -320,6 +320,12 @@ function handleError(res, error) {
});
if (error.type === 'TransformError' || error.type === 'NotFoundError') {
error.errors = [{
description: error.description,
filename: error.filename,
lineNumber: error.lineNumber,
}];
console.error(error);
res.end(JSON.stringify(error));
} else {
console.error(error.stack || error);