(module: Module)
| 576 | } |
| 577 | |
| 578 | removeModule(module: Module) { |
| 579 | // File structure changed, reset resolver cache |
| 580 | this.resetResolverCache(); |
| 581 | |
| 582 | const existingModule = this.transpiledModules[module.path]; |
| 583 | |
| 584 | values(existingModule.tModules).forEach(m => { |
| 585 | m.dispose(this); |
| 586 | this.removeTranspiledModule(m); |
| 587 | }); |
| 588 | |
| 589 | delete this.transpiledModules[module.path]; |
| 590 | |
| 591 | triggerFileWatch(module.path, 'rename'); |
| 592 | |
| 593 | this.markHardReload(); |
| 594 | } |
| 595 | |
| 596 | moveModule(module: Module, newPath: string) { |
| 597 | this.removeModule(module); |
no test coverage detected