diff --git a/packages/metro-bundler/src/Bundler/index.js b/packages/metro-bundler/src/Bundler/index.js index b9b1a9c6..a0df0b54 100644 --- a/packages/metro-bundler/src/Bundler/index.js +++ b/packages/metro-bundler/src/Bundler/index.js @@ -596,12 +596,14 @@ class Bundler { return response; } - getOrderedDependencyPaths({entryFile, dev, platform}: { + getOrderedDependencyPaths({entryFile, dev, platform, minify, generateSourceMaps}: { +entryFile: string, +dev: boolean, +platform: string, + +minify: boolean, + +generateSourceMaps: boolean, }) { - return this.getDependencies({entryFile, dev, platform}).then( + return this.getDependencies({entryFile, dev, platform, minify, generateSourceMaps}).then( ({dependencies}) => { const ret = []; const promises = []; diff --git a/packages/metro-bundler/src/Server/index.js b/packages/metro-bundler/src/Server/index.js index 5b1bf2ad..d06153a5 100644 --- a/packages/metro-bundler/src/Server/index.js +++ b/packages/metro-bundler/src/Server/index.js @@ -319,6 +319,8 @@ class Server { +entryFile: string, +dev: boolean, +platform: string, + +minify: boolean, + +generateSourceMaps: boolean, }): Promise { return Promise.resolve().then(() => { return this._bundler.getOrderedDependencyPaths(options); diff --git a/packages/metro-bundler/src/index.js b/packages/metro-bundler/src/index.js index 64ad2aba..8a2c2e0a 100644 --- a/packages/metro-bundler/src/index.js +++ b/packages/metro-bundler/src/index.js @@ -92,6 +92,8 @@ exports.getOrderedDependencyPaths = function(options: Options, depOptions: { +entryFile: string, +dev: boolean, +platform: string, + +minify: boolean, + +generateSourceMaps: boolean, }) { var server = createNonPersistentServer(options); return server.getOrderedDependencyPaths(depOptions)