import { foo } from './foo'
function bar() {
foo.bar()
// ^ js-hyperclick sees this `bar` as a link and jumps to the function declaration.
}
I think I'm going to updated it so that the whole foo.bar is clickable, but it will just be a shortcut for clicking foo. Properties are not statically analyzable without guessing, so using the attached variable (foo) as the anchor is the next best thing I can do to supporting properties.
I think I'm going to updated it so that the whole
foo.bar
is clickable, but it will just be a shortcut for clickingfoo
. Properties are not statically analyzable without guessing, so using the attached variable (foo
) as the anchor is the next best thing I can do to supporting properties.