Webpack - Debugging

debugging node modules

it’s safe to insert debugger anywhere in npm package source code - just make sure that you insert debugger statement in the file that is getting compiled by Webpack.

for example, npm package might contain multiple versions of the same JS file (normal, minified, dist versions) but only one of them is specified in main field of package.json => this version is the one that is imported in your application and compiled by Webpack eventually.