In ES6 (e.g. node), importing a module like this
import something from 'something';
Same as
import something from 'something/index';
However, vscode seems unable to execute "Go to Definition" when importing modules using the first method. If I add index , "Go to definition" works. Is there a way to modify jsconfig.json so that vscode checks the default index file?
source share