title: ESM import on webpackConfig
body: <p>I'm building a webpack app and I'm interested in use ESM through the entire app, meaning that build the webpack.config file with ESM imports.</p>
  <p>I now this is possible using Babel, but this was before npm added the <code>&quot;type&quot;: &quot;module&quot;</code> supporting now ESM imports without babel... I already tried it with Express and it worked but with Webpack I get this:</p>
  <pre><code>&gt; ...proyectDirectory/node_modules/webpack-cli/bin/cli.js:93
  
  &gt; require() of ES modules is not supported.
  </code></pre>
  <p>So I was wondering if there is a version of webpack-cli that use <code>import</code> instead of <code>require</code></p>