8 lines
297 B
TypeScript
8 lines
297 B
TypeScript
import type { NodePath } from '@babel/traverse';
|
|
/**
|
|
* Given a path (e.g. call expression, member expression or identifier),
|
|
* this function tries to find the name of module from which the "root value"
|
|
* was imported.
|
|
*/
|
|
export default function resolveToModule(path: NodePath): string | null;
|