From e1466da1ebf4383b447b36e903e2a4ff88a615b2 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sun, 2 Apr 2017 08:38:12 -0700 Subject: [PATCH] RN: Options to Preload Bundles on Startup Reviewed By: achen1 Differential Revision: D4809513 fbshipit-source-id: a9a4196b72b241faf7c788e26b9e6880cecebb3e --- packager/src/Server/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packager/src/Server/index.js b/packager/src/Server/index.js index 0750e6aa6..2e9304710 100644 --- a/packager/src/Server/index.js +++ b/packager/src/Server/index.js @@ -518,7 +518,7 @@ class Server { }); } - _useCachedOrUpdateOrCreateBundle(options: BundleOptions): Promise { + useCachedOrUpdateOrCreateBundle(options: BundleOptions): Promise { const optionsJson = this.optionsHash(options); const bundleFromScratch = () => { const building = this.buildBundle(options); @@ -683,7 +683,7 @@ class Server { }; debug('Getting bundle for request'); - const building = this._useCachedOrUpdateOrCreateBundle(options); + const building = this.useCachedOrUpdateOrCreateBundle(options); building.then( p => { if (requestType === 'bundle') { @@ -784,7 +784,7 @@ class Server { _sourceMapForURL(reqUrl: string): Promise { const options = this._getOptionsFromUrl(reqUrl); - const building = this._useCachedOrUpdateOrCreateBundle(options); + const building = this.useCachedOrUpdateOrCreateBundle(options); return building.then(p => p.getSourceMap({ minify: options.minify, dev: options.dev,