diff --git a/react-packager/src/Server/index.js b/react-packager/src/Server/index.js index 2f42e870..b9f35063 100644 --- a/react-packager/src/Server/index.js +++ b/react-packager/src/Server/index.js @@ -264,7 +264,9 @@ class Server { this._bundles[key].then(bundle => { const deps = bundleDeps.get(bundle); filePaths.forEach(filePath => { + // $FlowFixMe(>=0.37.0) if (deps.files.has(filePath)) { + // $FlowFixMe(>=0.37.0) deps.outdated.add(filePath); } }); @@ -557,6 +559,7 @@ class Server { if (optionsJson in this._bundles) { return this._bundles[optionsJson].then(bundle => { const deps = bundleDeps.get(bundle); + // $FlowFixMe(>=0.37.0) const {dependencyPairs, files, idToIndex, outdated} = deps; if (outdated.size) { @@ -570,6 +573,7 @@ class Server { const changedModules = Array.from(outdated, this.getModuleForPath, this); + // $FlowFixMe(>=0.37.0) deps.outdated = new Set(); const opts = bundleOpts(options); diff --git a/react-packager/src/node-haste/ModuleCache.js b/react-packager/src/node-haste/ModuleCache.js index 3ade7b7b..141024dd 100644 --- a/react-packager/src/node-haste/ModuleCache.js +++ b/react-packager/src/node-haste/ModuleCache.js @@ -114,6 +114,7 @@ class ModuleCache { getPackageForModule(module: Module): ?Package { if (this._packageModuleMap.has(module)) { const packagePath = this._packageModuleMap.get(module); + // $FlowFixMe(>=0.37.0) if (this._packageCache[packagePath]) { return this._packageCache[packagePath]; } else {