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

Function addModule

packager/src/Bundler/__tests__/Bundle-test.js:400–416  ·  view source on GitHub ↗
({bundle, code, sourceCode, sourcePath, map, virtual, polyfill, meta, id = ''})

Source from the content-addressed store, hash-verified

398}
399
400function addModule({bundle, code, sourceCode, sourcePath, map, virtual, polyfill, meta, id = ''}) {
401 return bundle.addModule(
402 resolverFor(code, map),
403 null,
404 {isPolyfill: () => polyfill},
405 createModuleTransport({
406 code,
407 sourceCode,
408 sourcePath,
409 id,
410 map,
411 meta,
412 virtual,
413 polyfill,
414 }),
415 );
416}
417
418function createModuleTransport(data) {
419 return new ModuleTransport({

Callers 2

Bundle-test.jsFile · 0.85
createBundleFunction · 0.85

Calls 3

resolverForFunction · 0.85
createModuleTransportFunction · 0.85
addModuleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…