MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / getDependencies

Method getDependencies

packager/src/Server/index.js:296–305  ·  view source on GitHub ↗
(options: DependencyOptions)

Source from the content-addressed store, hash-verified

294 }
295
296 getDependencies(options: DependencyOptions): Promise<ResolutionResponse<Module, *>> {
297 return Promise.resolve().then(() => {
298 const platform = options.platform != null
299 ? options.platform : getPlatformExtension(options.entryFile);
300 const {entryFile, dev, minify, hot} = options;
301 return this._bundler.getDependencies(
302 {entryFile, platform, dev, minify, hot, generateSourceMaps: false},
303 );
304 });
305 }
306
307 getOrderedDependencyPaths(options: {
308 +entryFile: string,

Callers 3

getDependenciesFunction · 0.45
attachHMRServerFunction · 0.45

Calls 3

getPlatformExtensionFunction · 0.85
resolveMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected