npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Flag/parameter to make sure that "Go to definition" leads to human readable code


When I go to definition of a npm package in my local dev environment I want to be taken to the human readable code, not the transpiled code.


Since alot of packages are transpiled and/or minified with for example babel or typescript I would like in my local dev environment for all packages to point to and use the authored human readable code. Often this is just a matter of instead of pointing the main field in package.json to src/index.js instead of lib/index.js.

My thinking is that there is either a parameter like for example: npm install --human-readable or maybe an environment variable that controls this.