<p dir="auto">I just updated from beta7 to beta8. After compiling my js file I am seeing the following error in my console <code class="notranslate">Uncaught SyntaxError: Unexpected token )</code>.</p>
<p dir="auto">Looking at the line where the error occurred I can see that there is an extra closing parenthesis.</p>
<p dir="auto">Below is the generated code. (I've indented it so I could read it better)</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _default = /* harmony import */__WEBPACK_IMPORTED_MODULE_1_redux_actions__[&quot;handleActions&quot;].call(
  undefined,
  _handleActions = {},
  _defineProperty(
    _handleActions,
    /* harmony import */__WEBPACK_IMPORTED_MODULE_0__constants_properties__[&quot;a&quot;] + '_GET_SUCCESS', 
    function undefined(state, _ref) {
      var payload = _ref.payload;
      return /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.assign(
        {},
        state,
        {
          propertyIDs: /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.union(state.propertyIDs, payload.result)
        }
      );
    }
  ), 
  _defineProperty(
    _handleActions,
    /* harmony import */__WEBPACK_IMPORTED_MODULE_0__constants_properties__[&quot;b&quot;] + '_GET_SUCCESS',
    function undefined(state, _ref2) {
      var payload = _ref2.payload;
      return /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.assign(
        {},
        state, 
        {
          propertyIDs: /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.union(state.propertyIDs, payload.result)
        }
      );
    }
  ),
  _handleActions), // &lt;- extra paren
  initialState);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_default</span> <span class="pl-c1">=</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_1_redux_actions__</span><span class="pl-kos">[</span><span class="pl-s">"handleActions"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span>
  <span class="pl-c1">undefined</span><span class="pl-kos">,</span>
  <span class="pl-s1">_handleActions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-en">_defineProperty</span><span class="pl-kos">(</span>
    <span class="pl-s1">_handleActions</span><span class="pl-kos">,</span>
    <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_0__constants_properties__</span><span class="pl-kos">[</span><span class="pl-s">"a"</span><span class="pl-kos">]</span> <span class="pl-c1">+</span> <span class="pl-s">'_GET_SUCCESS'</span><span class="pl-kos">,</span> 
    <span class="pl-k">function</span> <span class="pl-en">undefined</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">_ref</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-k">var</span> <span class="pl-s1">payload</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref</span><span class="pl-kos">.</span><span class="pl-c1">payload</span><span class="pl-kos">;</span>
      <span class="pl-k">return</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">assign</span><span class="pl-kos">(</span>
        <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
        <span class="pl-s1">state</span><span class="pl-kos">,</span>
        <span class="pl-kos">{</span>
          <span class="pl-c1">propertyIDs</span>: <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">union</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-c1">propertyIDs</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">result</span><span class="pl-kos">)</span>
        <span class="pl-kos">}</span>
      <span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">)</span><span class="pl-kos">,</span> 
  <span class="pl-en">_defineProperty</span><span class="pl-kos">(</span>
    <span class="pl-s1">_handleActions</span><span class="pl-kos">,</span>
    <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_0__constants_properties__</span><span class="pl-kos">[</span><span class="pl-s">"b"</span><span class="pl-kos">]</span> <span class="pl-c1">+</span> <span class="pl-s">'_GET_SUCCESS'</span><span class="pl-kos">,</span>
    <span class="pl-k">function</span> <span class="pl-en">undefined</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">_ref2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-k">var</span> <span class="pl-s1">payload</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref2</span><span class="pl-kos">.</span><span class="pl-c1">payload</span><span class="pl-kos">;</span>
      <span class="pl-k">return</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">assign</span><span class="pl-kos">(</span>
        <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
        <span class="pl-s1">state</span><span class="pl-kos">,</span> 
        <span class="pl-kos">{</span>
          <span class="pl-c1">propertyIDs</span>: <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">union</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-c1">propertyIDs</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">result</span><span class="pl-kos">)</span>
        <span class="pl-kos">}</span>
      <span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">)</span><span class="pl-kos">,</span>
  <span class="pl-s1">_handleActions</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c">// &lt;- extra paren</span>
  <span class="pl-s1">initialState</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Looking over the commits it looks like maybe it might have been caused by this commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/webpack/webpack/commit/75b93a1438b58f4c737137c4d50081bd0c810218/hovercard" href="https://github.com/webpack/webpack/commit/75b93a1438b58f4c737137c4d50081bd0c810218"><tt>75b93a1</tt></a> I could be wrong though.</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">A few large dependencies (slate / react-slate / immutable) shared by two pages are not put in a shared chunk (a large number of dependencies are the same including components). See visualization below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/579279/38434493-260d0732-3a01-11e8-94c3-d4213cb94b5f.png"><img src="https://user-images.githubusercontent.com/579279/38434493-260d0732-3a01-11e8-94c3-d4213cb94b5f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="splitChunks: {
  chunks: 'all',
  name: false,
}"><pre class="notranslate"><code class="notranslate">splitChunks: {
  chunks: 'all',
  name: false,
}
</code></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">In my understanding this should not happen by default, so I'd like to see if this is incorrect behaviour. If this is the case I'll happily provide more information to investigate.</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">webpack version: 4.5.0.</p>