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

Method replaceModuleAt

packager/src/Bundler/BundleBase.js:61–67  ·  view source on GitHub ↗
(index: number, module: ModuleTransport)

Source from the content-addressed store, hash-verified

59 }
60
61 replaceModuleAt(index: number, module: ModuleTransport) {
62 if (!(module instanceof ModuleTransport)) {
63 throw new Error('Expeceted a ModuleTransport object');
64 }
65
66 this._modules[index] = module;
67 }
68
69 getModules() {
70 return this._modules;

Callers 1

addModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected