[ReactNative] Skip flow checks for URLs that are not bundles

This commit is contained in:
Alex Kotliarskyi 2015-04-20 12:41:29 -07:00
parent f7e2e4114b
commit 259894046c
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ var hasWarned = {};
function getFlowTypeCheckMiddleware(options) {
return function(req, res, next) {
if (options.skipflow) {
var isBundle = req.url.indexOf('.bundle') !== -1;
if (options.skipflow || !isBundle) {
return next();
}
if (options.flowroot || options.projectRoots.length === 1) {