tern
tern copied to clipboard
Jump to definition doesn't work from `export` es6 syntax
trafficstars
Hi,
There are two files
// index.js
export {List} from "./list"
// list.js
export class List {}
from index.js, if we issue definition command from location {Li<cursor>st}, it doesn't resolve the jump target.
But if we change the export statement to import it works as expected.
It looks like Jump to definition is not considering the specific export syntax.
Please try the above code in tern-js playground: https://ternjs.net/doc/demo/index.html#ES6
Thanks, Arun.