(binding: Binding, module: SourceModule)
| 1449 | |
| 1450 | // whether an import's module resolves without asking a bundler |
| 1451 | resolvesLocally(binding: Binding, module: SourceModule): boolean { |
| 1452 | const { parent } = binding.declaration as { parent?: Node } |
| 1453 | if (parent?.type !== "ImportDeclaration") return false |
| 1454 | const target = this.resolve(parent.source.value, module, () => false) |
| 1455 | return target instanceof SourceModule || target.kind !== "unresolved" |
| 1456 | } |
| 1457 | |
| 1458 | importOf(binding: Binding, module: SourceModule): ImportTarget { |
| 1459 | const declaration = binding.declaration |
no test coverage detected