* 热重载模块
(locale: string, moduleName: string)
| 286 | * 热重载模块 |
| 287 | */ |
| 288 | async reloadModule(locale: string, moduleName: string): Promise<any> { |
| 289 | const cacheKey = `${locale}:${moduleName}`; |
| 290 | this.cache.delete(cacheKey); |
| 291 | |
| 292 | const moduleInfo = this.moduleRegistry.get(moduleName); |
| 293 | if (moduleInfo) { |
| 294 | moduleInfo.loaded = false; |
| 295 | } |
| 296 | |
| 297 | return this.loadModule(locale, moduleName); |
| 298 | } |
| 299 | |
| 300 | |
| 301 | } |
nothing calls this directly
no test coverage detected