[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 d6afe1b124
commit 5e2f90a73e
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) {