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

Method getShallowDependencies

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

Source from the content-addressed store, hash-verified

279 }
280
281 getShallowDependencies(options: DependencyOptions): Promise<Array<Module>> {
282 return Promise.resolve().then(() => {
283 const platform = options.platform != null
284 ? options.platform : getPlatformExtension(options.entryFile);
285 const {entryFile, dev, minify, hot} = options;
286 return this._bundler.getShallowDependencies(
287 {entryFile, platform, dev, minify, hot, generateSourceMaps: false},
288 );
289 });
290 }
291
292 getModuleForPath(entryFile: string): Promise<Module> {
293 return this._bundler.getModuleForPath(entryFile);

Callers 2

getDependenciesFunction · 0.45
attachHMRServerFunction · 0.45

Calls 3

getPlatformExtensionFunction · 0.85
resolveMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected