title: how to exclude nested node_module folders from a loader in webpack
body: <p>Will the following <code>exclude: '/node_modules/'</code> only exclude the node_modules folder in the same directory, or will it also exclude the nested node_module folders? If not: how can I adjust it to exclude all the node_module folders?</p>
  
  <pre><code>module: {
      loaders: [
          { test: /\.ts$/, loader: 'ts-loader',exclude: '/node_modules/' } 
      ]
  },
  </code></pre>
  
  <p>Filestructure:</p>
  
  <pre><code>/general
  /node_modules
  /mod1
       /src
       /node_modules
  /mod2
       /src
       /node_modules
  </code></pre>