VSCode "Go to definition": How to display non-compiled ES6 files?

Viewed 196

In a Node.js app with installed npm dependencies, I'm importing a module like that:

import { Admin } from 'react-admin';

When I hover on the 'Admin' name and choose 'Go to definition', VSCode displays the compiled source, taken from node_modules/react_admin/lib/index.js, instead of the more readable, ES6 source located under node_modules/react_admin/src/index.js.

How can I (or the 'react-admin' package author) tell VSCode to jump to the non-compiled source when hitting 'go to definition'?

0 Answers
Related