mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove last use of Metro deep imports
Summary: Remove the last use of a Metro deep import in preparation for making all deep imports semver-private. Changelog: [Internal] Reviewed By: huntie Differential Revision: D77450110
This commit is contained in:
committed by
Facebook GitHub Bot
parent
083644647e
commit
d53cb0adbf
+2
-2
@@ -14,7 +14,7 @@ let reporter /*: $FlowFixMe */;
|
||||
|
||||
const logPath = process.env.RCT_PACKAGER_LOG_PATH;
|
||||
if (logPath != null && logPath !== '') {
|
||||
const JsonReporter = require('metro/src/lib/JsonReporter');
|
||||
const {JsonReporter} = require('metro');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
// $FlowFixMe[missing-type-arg]
|
||||
@@ -27,7 +27,7 @@ if (logPath != null && logPath !== '') {
|
||||
}
|
||||
};
|
||||
} else {
|
||||
reporter = require('metro/src/lib/TerminalReporter');
|
||||
reporter = require('metro').TerminalReporter;
|
||||
}
|
||||
|
||||
module.exports = reporter;
|
||||
|
||||
Reference in New Issue
Block a user