(specifier: Node, module: SourceModule)
| 804 | |
| 805 | // a module loaded by a specifier it can't read may be any |
| 806 | private keepLoaded(specifier: Node, module: SourceModule): void { |
| 807 | if (specifier.type === "Literal" && typeof specifier.value === "string") { |
| 808 | const target = this.targetOf(specifier.value, module) |
| 809 | if (target) this.keepExports(target) |
| 810 | } else for (const loaded of this.modules.values()) this.keepExports(loaded) |
| 811 | } |
| 812 | |
| 813 | private keepExport(module: SourceModule, name: string): void { |
| 814 | const key = `${module.id}\0${name}` |
no test coverage detected