mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Use new config internally in Metro
Summary: Change the internals of Metro to use the new configuration instead of `ServerOptions`. Reviewed By: rafeca Differential Revision: D8734685 fbshipit-source-id: 1215f799419fcaa0e5fb7814683da1cbba96795c
This commit is contained in:
committed by
Facebook Github Bot
parent
a32620dc3b
commit
aaf797ad67
@@ -16,7 +16,6 @@ const Server = require('metro/src/Server');
|
||||
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
const outputBundle = require('metro/src/shared/output/bundle');
|
||||
const {convert} = require('metro-config');
|
||||
const path = require('path');
|
||||
const saveAssets = require('./saveAssets');
|
||||
|
||||
@@ -57,9 +56,7 @@ async function buildBundle(
|
||||
platform: args.platform,
|
||||
};
|
||||
|
||||
const {serverOptions} = convert.convertNewToOld(config);
|
||||
|
||||
const server = new Server(serverOptions);
|
||||
const server = new Server(config);
|
||||
|
||||
try {
|
||||
const bundle = await output.build(server, requestOpts);
|
||||
|
||||
Reference in New Issue
Block a user