<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><br>
Webpack crashes when using <code class="notranslate">MinChunkSizePlugin</code> with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pair[2].integrate(pair[3], &quot;min-size&quot;);
                                        ^

TypeError: pair[2].integrate is not a function
    at Compilation.compilation.plugin (/Users/eldh/Code/marketplace/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)
    at Compilation.applyPluginsBailResult1 (/Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:120:27)
    at Compilation.seal (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:572:9)
    at /Users/eldh/Code/marketplace/node_modules/webpack/lib/Compiler.js:488:16
    at /Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:225:11
    at _addModuleChain (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:477:11)
    at processModuleDependencies.err (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:448:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)"><pre class="notranslate"><code class="notranslate">pair[2].integrate(pair[3], "min-size");
                                        ^

TypeError: pair[2].integrate is not a function
    at Compilation.compilation.plugin (/Users/eldh/Code/marketplace/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)
    at Compilation.applyPluginsBailResult1 (/Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:120:27)
    at Compilation.seal (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:572:9)
    at /Users/eldh/Code/marketplace/node_modules/webpack/lib/Compiler.js:488:16
    at /Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:225:11
    at _addModuleChain (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:477:11)
    at processModuleDependencies.err (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:448:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
</code></pre></div>
<p dir="auto">Using the following options: <code class="notranslate">new webpack.optimize.MinChunkSizePlugin({minChunkSize: 40000}),</code></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
As this seems to have been fixed in master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/webpack/webpack/commit/915c150f3afa8a96f0d33be7c10e40fd54896faa/hovercard" href="https://github.com/webpack/webpack/commit/915c150f3afa8a96f0d33be7c10e40fd54896faa"><tt>915c150</tt></a>), I'm not going to spend time on creating a repro. Still think it might be good to create this issue for other people running into this.</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
No crash.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
n/a</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Bug</p>


<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">When I try to compile I get: TypeError: pair[2].integrate is not a function at Compilation.compilation.plugin (*/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Compile that worked on 2.2.1</p>



<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Compilation success</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">node 7.7.1 on Mac</p>
<p dir="auto">I do have two configs that compile simultaneously</p>
<p dir="auto">Client:</p>
<p dir="auto">new webpack.optimize.MinChunkSizePlugin({<br>
minChunkSize: 10000<br>
}),</p>
<p dir="auto">Server:</p>
<p dir="auto">new webpack.optimize.MinChunkSizePlugin({<br>
minChunkSize: Infinity<br>
})</p>
<p dir="auto">And I do use <a href="https://www.npmjs.com/package/webpack-hot-server-middleware" rel="nofollow">webpack-hot-server-middleware</a> in case that has anything to do with it.</p>