mirror of https://github.com/status-im/metro.git
[ReactNative] Skip flow checks for URLs that are not bundles
This commit is contained in:
parent
f7e2e4114b
commit
259894046c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue