Convert internal react-native-cli

Summary: In this diff I change the internal react-native cli to use our new configuration. Another change here is that Metro starts using the new configuration already as its entry points (like `metro#runMetro`).

Reviewed By: rafeca

Differential Revision: D8728612

fbshipit-source-id: 9f43dee31ebaccd35cf6274d5c4dec0a227a6eec
This commit is contained in:
Ives van Hoorne
2018-07-25 05:44:38 -07:00
committed by Facebook Github Bot
parent c3d31cd1de
commit f0daaf3568
4 changed files with 37 additions and 86 deletions

View File

@@ -16,11 +16,11 @@ const outputBundle = require('metro/src/shared/output/bundle');
/**
* Builds the bundle starting to look for dependencies at the given entry path.
*/
function bundleWithOutput(argv, config, args, output) {
function bundleWithOutput(argv, configPromise, args, output) {
if (!output) {
output = outputBundle;
}
return buildBundle(args, config, output);
return buildBundle(args, configPromise, output);
}
module.exports = {