From 4130afcf19497384f83cc3150e005b7849db63f7 Mon Sep 17 00:00:00 2001 From: Jeff Morrison Date: Tue, 13 Dec 2016 18:57:42 -0800 Subject: [PATCH] fbsource Reviewed By: samwgoldman Differential Revision: D4314897 fbshipit-source-id: fbe11da4c63bf34d010220d74177cb3ca4cbee6d --- react-packager/src/Server/index.js | 4 ++++ react-packager/src/node-haste/ModuleCache.js | 1 + 2 files changed, 5 insertions(+) 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 {