[ReactNative] Skip flow checks for URLs that are not bundles
This commit is contained in:
parent
d6afe1b124
commit
5e2f90a73e
|
@ -16,7 +16,8 @@ var hasWarned = {};
|
||||||
|
|
||||||
function getFlowTypeCheckMiddleware(options) {
|
function getFlowTypeCheckMiddleware(options) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
if (options.skipflow) {
|
var isBundle = req.url.indexOf('.bundle') !== -1;
|
||||||
|
if (options.skipflow || !isBundle) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
if (options.flowroot || options.projectRoots.length === 1) {
|
if (options.flowroot || options.projectRoots.length === 1) {
|
||||||
|
|
Loading…
Reference in New Issue