How to debug the js file in node_modules?

how do I debug the js file in node_modules?

Apr.24,2022

it is not recommended to debug the js file in / node_modules , and it is a bit troublesome to debug.
if you need to debug the dependencies package, you need to find the master file of the introduced dependency, such as mint-ui I introduced. From the / node_modules/mint-ui/package.json file, I see that the main file is lib/mint-ui.common.js , which is a built js. Here I can debugger and take effect;

so the main thing is to correctly find the introduced file ;

Menu