title: Webpack 4 babel loader exclude not working
body: <p>I try setup Webpack 4.6.0 with React and I had an issue:
  <a href="https://i.stack.imgur.com/ttnhx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ttnhx.png" alt="enter image description here"></a></p>
  
  <p>in a <a href="https://pastebin.com/eYwapxQU" rel="nofollow noreferrer">webpack.config.js</a>:</p>
  
  <pre><code>...
  rules: [
    {
      test: /\.jsx?$/,
      exclude: /node_modules(?!\/myuimodule)/,
      use: ['babel-loader'],
    },
  ...
  </code></pre>
  
  <p>and in .babelrc</p>
  
  <pre><code>{
    "presets": [
      "@babel/react",
      [
        "@babel/preset-env",
        {
          "useBuiltIns": "usage",
          "modules": false
        }
      ]
    ],
    "plugins": [
      "@babel/plugin-proposal-class-properties",
      "@babel/plugin-proposal-object-rest-spread",
      "@babel/plugin-syntax-dynamic-import"
    ]
  }
  </code></pre>
  
  <p>why babel-loader not exclude myuimodule? </p>