What does webpack mean by XX hidden modules

Christian Schlensker picture Christian Schlensker · Mar 4, 2015 · Viewed 18.7k times · Source

I've been playing with webpack and during the build I see it output: + 27 hidden modules. What does it mean by this? Is it detecting global constants that I'm using without requiring them?

Answer

Johannes Ewald picture Johannes Ewald · Mar 6, 2015

Webpack hides modules coming from folders like ["node_modules", "bower_components", "jam", "components"] in your console output by default. This helps you to focus on your modules instead on your dependencies.

You can display them by using the --display-modules argument.