MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / createServer

Function createServer

packager/react-packager.js:111–124  ·  view source on GitHub ↗
(options: StrictOptions)

Source from the content-addressed store, hash-verified

109}
110
111function createServer(options: StrictOptions): Server {
112 // the debug module is configured globally, we need to enable debugging
113 // *before* requiring any packages that use `debug` for logging
114 if (options.verbose) {
115 enableDebug();
116 }
117
118 // Some callsites may not be Flowified yet.
119 invariant(options.reporter != null, 'createServer() requires reporter');
120 const serverOptions = Object.assign({}, options);
121 delete serverOptions.verbose;
122 const ServerClass = require('./src/Server');
123 return new ServerClass(serverOptions);
124}
125
126function createNonPersistentServer(options: Options): Server {
127 const serverOptions = {

Callers 1

Calls 3

enableDebugFunction · 0.85
invariantFunction · 0.85
requireFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…