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

Method moveModule

packages/sandpack-core/src/manager.ts:596–599  ·  view source on GitHub ↗
(module: Module, newPath: string)

Source from the content-addressed store, hash-verified

594 }
595
596 moveModule(module: Module, newPath: string) {
597 this.removeModule(module);
598 this.addModule({ ...module, path: newPath });
599 }
600
601 setEnvironmentVariables() {
602 if (this.transpiledModules['/.env'] && this.preset.hasDotEnv) {

Callers 1

ManagerClass · 0.95

Calls 2

removeModuleMethod · 0.95
addModuleMethod · 0.95

Tested by

no test coverage detected