8

I need to audit the list of node packages that are used in a webpack bundle. The corresponding webpack config file passes the list of production dependencies (ie the non-dev dependencies from the application's package.json) as the list of entry points to module.exports. Ideally I'd get a list of all the package.json files of every node package that ends up in the bundle. Just searching the node_modules directory of the application isn't sufficient as this includes devDependencies, etc.

How can I do this with webpack?

Prismatic
  • 3,338
  • 5
  • 36
  • 59
  • 1
    Would you try [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)? May be that you want. – zkohi May 09 '19 at 08:43

0 Answers0