title: Include some node_modules directories in Babel 7
body: <p>I have a dependency in <code>node_modules</code> that needs to be compiled through Babel. I don't manage to get Babel back to compiling after upgrading my stack.</p>
  
  <p>Current versions:</p>
  
  <ul>
  <li>@babel/core 7.5.4</li>
  <li>webpack 2.7.0</li>
  </ul>
  
  <p>webpack.config.js:</p>
  
  <pre><code>const path = require('path');
  
  module.exports = {
      devtool: 'cheap-module-source-map',
      context: path.resolve('resources/assets/js/'),
      entry: ['./index'],
      output: {
          path: path.resolve('public/js'),
          filename: 'index.js'
      },
      module: {
          rules: [
              {
                  include: [
                      path.resolve('resources/assets/js/'),
                      path.resolve('node_modules/mydep/'),
                  ],
                  exclude: /node_modules\/(?!mydep).+/,
                  test: /\.js|jsx$/,
                  use: { loader: 'babel-loader' }
              }
          ]
      },
      resolve: {
          modules: [
              path.resolve('./resources/assets/js/'),
              'node_modules'
          ]
      },
      watchOptions: {
          aggregateTimeout: 300,
          ignored: [
              /node_modules([\\]+|\/)+(?!mydep)/,
              /\mydep([\\]+|\/)node_modules/
          ]
      }
  };
  </code></pre>
  
  <p>.babelrc:</p>
  
  <pre><code>{
    "presets": [
      ["@babel/preset-env", {
        "debug": true,
        "useBuiltIns": "usage"
      }],
      "@babel/preset-react"
    ]
  }
  </code></pre>
  
  <p>The error I get at the top of first JSX tag :</p>
  
  <pre><code>ERROR in /var/www/node_modules/mydep/somedir/app/index.js
  Module build failed (from /var/www/node_modules/babel-loader/lib/index.js):
  SyntaxError: /var/www/node_modules/mydep/somedir/app/index.js: Unexpected token (160:15)
  
    158 |         registerReducers();
    159 |         new SomeClass('acquisition');
  &gt; 160 |         return &lt;SomeComponent /&gt;
  </code></pre>