<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
report bug</p>


<p dir="auto"><strong>What is the current behavior?</strong><br>
4.6<br>
<strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
webpack optimization.splitChunks  when minChunks==1, what means ? why not start with 2?<br>
why not stay the same as the document <a href="https://webpack.js.org/plugins/commons-chunk-plugin/" rel="nofollow">commons-chunk-plugin</a> require<br>
<code class="notranslate">The number must be greater than or equal 2 and lower than or equal to the number of chunks.</code></p>
<p dir="auto">when i setting minChunks==1,  no new chunk created</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
when minChunks==1,  create a new chunk by every dependency module.<br>
?</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong></p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
bug</p>


<p dir="auto"><strong>What is the current behavior?</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'type' of undefined
    at getFinalName (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:51:13)
    at info.globalScope.through.forEach.reference (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:582:25)
    at Array.forEach (native)
    at modulesWithInfo.forEach.info (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:569:30)
    at Array.forEach (native)
    at ConcatenatedModule.source (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:567:19)
    at ModuleTemplate.render (XXX/node_modules/webpack/lib/ModuleTemplate.js:14:31)
    at XXX/node_modules/webpack/lib/Template.js:116:28
    at Function.from (native)
    at Chunk.mapModules (XXX/node_modules/webpack/lib/Chunk.js:163:16)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'type' of undefined
    at getFinalName (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:51:13)
    at info.globalScope.through.forEach.reference (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:582:25)
    at Array.forEach (native)
    at modulesWithInfo.forEach.info (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:569:30)
    at Array.forEach (native)
    at ConcatenatedModule.source (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:567:19)
    at ModuleTemplate.render (XXX/node_modules/webpack/lib/ModuleTemplate.js:14:31)
    at XXX/node_modules/webpack/lib/Template.js:116:28
    at Function.from (native)
    at Chunk.mapModules (XXX/node_modules/webpack/lib/Chunk.js:163:16)
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
// Find and replace referenced to modules<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/webpack/webpack/blob/c26d1f0d226ee9aa940211fa1b3822de7d09f4d5/lib/optimize/ConcatenatedModule.js#L573">webpack/lib/optimize/ConcatenatedModule.js</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 573
      in
      <a data-pjax="true" class="commit-tease-sha" href="/webpack/webpack/commit/c26d1f0d226ee9aa940211fa1b3822de7d09f4d5">c26d1f0</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L573" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="573"></td>
          <td id="LC573" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-s1">referencedModule</span> <span class="pl-c1">=</span> <span class="pl-s1">modulesWithInfo</span><span class="pl-kos">[</span><span class="pl-c1">+</span><span class="pl-s1">match</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">referencedModule maybe is <code class="notranslate">undefined</code></p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
if the config is an error, will log reason of error.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p>