title: Why to use webpack-node-externals in node?
body: <p>I'm using webpack to bundle my typescript nodejs code.</p>
  
  <p>I use <code>webpack-node-externals</code> to avoid errors in node_modules during the compile time.</p>
  
  <p><code>webpack-node-externals</code> says that, allows you to define externals - modules that should not be bundled.</p>
  
  <p>But why? Webpack should bundle everything that I need to start my bundle right? It can extract and remove module that I don't use. (tree-shake for example).</p>
  
  <p>If I use <code>webpack-node-externals</code>, then I'll have to do <code>npm i</code> in my prod folder to get all the dependencies.</p>
  
  <p>I think this is miss the point of webpack can do. right?</p>