MCPcopy Create free account
hub / github.com/codesandbox/codesandbox-client / updateModule

Method updateModule

packages/sandpack-core/src/manager.ts:1066–1075  ·  view source on GitHub ↗
(m: Module)

Source from the content-addressed store, hash-verified

1064 }
1065
1066 updateModule(m: Module) {
1067 this.transpiledModules[m.path].module = m;
1068
1069 triggerFileWatch(m.path, 'change');
1070 return this.getTranspiledModulesByModule(m).map(tModule => {
1071 tModule.update(m);
1072
1073 return tModule;
1074 });
1075 }
1076
1077 resolveTranspiledModuleAsync = async (
1078 path: string,

Callers 2

ManagerClass · 0.95
updateDataMethod · 0.95

Calls 4

triggerFileWatchFunction · 0.85
updateMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected