title: WebPack Babel ignore node_modules with exceptions
body: <p>I have a node_module that is written in ES6 so causes issues when trying to view this in IE11.  To solve this I setup <code>babel</code> so which solves the issue with IE11.  But, babel seems to be trying to parse ALL node modules rather than just the one I want it to.  How do I properly exclude all node modules bar <code>flv.js</code>? Note I found the exclusion syntax from this <a href="https://github.com/babel/babel-loader/issues/171" rel="nofollow noreferrer">github thread</a></p>
  <pre><code>{
      test: /\.jsx?$/,
      exclude:/node_modules\/(?!flv.js)/,
      loader: 'babel-loader',
      query: {
          presets: ['es2015']
      }
  },
  </code></pre>
  <p>WebPack output that makes me think its transpiling more than just <code>flv.js</code></p>
  <blockquote>
  <p>[BABEL] Note: The code generator has deoptimised the styling of
  &quot;C:/TFS/.../node_modules/lodash/lodash.js&quot;
  as it exceeds the max of &quot;500KB&quot;.</p>
  <p>[BABEL] Note: The code generator has deoptimised the styling of
  &quot;C:/TFS/.../node_modules/angular-google-maps/dist/angular-google-maps.js&quot;
  as it exceeds the max of &quot;500KB&quot;.</p>
  <p>[BABEL] Note: The code generator has deoptimised the styling of
  &quot;C:/TFS/.../node_modules/angular/angular.js&quot;
  as it exceeds the max of &quot;500KB&quot;.</p>
  <p>[BABEL] Note: The code generator has deoptimised the styling of
  &quot;C:/TFS/...b/node_modules/angular-material/angular-material.js&quot;
  as it exceeds the max of &quot;500KB&quot;.</p>
  </blockquote>