title: webpack command ends with no output if resolver.extensions is specified
body: <p>I tried various webpack versions (4 and 5) and this is on latest 5.72.1</p>
  <p>In my webpack config file I have this:</p>
  <pre><code>module: {
    rules: [
      { test: /\.tsx?$/, use: &quot;ts-loader&quot; }
    ]
  },
  //...
  resolve: { 
    extensions: ['.tsx', '.ts', '.js'] 
    //... 
  }
  </code></pre>
  <p>When I execute the following command as a npm build script:</p>
  <pre><code>webpack --env NODE_ENV=dev --config webpack.dev.config.js
  </code></pre>
  <p>I get no output in console at all, the command returns quickly and no file is created. Note that this is also true if I set stats:'verbose' in the config.</p>
  <p>If I remove the &quot;extensions&quot; bit (or, more specifically, if I remove the tsx and ts ones), then the compilation actually takes place, but I'm getting all sorts of resolution errors because it cannot resolve correctly things like &quot;import ../filename&quot; since it doesn't understand that filename has a .ts extension.</p>
  <p>I also tried to use <a href="https://www.npmjs.com/package/resolve-typescript-plugin" rel="nofollow noreferrer">https://www.npmjs.com/package/resolve-typescript-plugin</a> both with and without the &quot;extensions&quot; block but it always has the &quot;empty result&quot; behaviour.</p>
  <p>Any suggestions on what's going wrong here, or how to force webpack to tell me what's wrong?</p>