Skip to content

Commit e1466da

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Options to Preload Bundles on Startup
Reviewed By: achen1 Differential Revision: D4809513 fbshipit-source-id: a9a4196b72b241faf7c788e26b9e6880cecebb3e
1 parent f1371ec commit e1466da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packager/src/Server/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ class Server {
518518
});
519519
}
520520

521-
_useCachedOrUpdateOrCreateBundle(options: BundleOptions): Promise<Bundle> {
521+
useCachedOrUpdateOrCreateBundle(options: BundleOptions): Promise<Bundle> {
522522
const optionsJson = this.optionsHash(options);
523523
const bundleFromScratch = () => {
524524
const building = this.buildBundle(options);
@@ -683,7 +683,7 @@ class Server {
683683
};
684684

685685
debug('Getting bundle for request');
686-
const building = this._useCachedOrUpdateOrCreateBundle(options);
686+
const building = this.useCachedOrUpdateOrCreateBundle(options);
687687
building.then(
688688
p => {
689689
if (requestType === 'bundle') {
@@ -784,7 +784,7 @@ class Server {
784784

785785
_sourceMapForURL(reqUrl: string): Promise<SourceMap> {
786786
const options = this._getOptionsFromUrl(reqUrl);
787-
const building = this._useCachedOrUpdateOrCreateBundle(options);
787+
const building = this.useCachedOrUpdateOrCreateBundle(options);
788788
return building.then(p => p.getSourceMap({
789789
minify: options.minify,
790790
dev: options.dev,

0 commit comments

Comments
 (0)