<p dir="auto">I have a situation where a lot of shared libs are duplicated into separate chunks.</p>
<p dir="auto">And I've noticed the docs are saying things like "Nothing will be merged into the entry chunk, so as not to impact initial page loading time" or "The entry chunks have higher priority for file size.".</p>
<p dir="auto">But I'd like to move <strong>everything common</strong> into the entry chunk without manually putting require.ensures() into the entry chunk.</p>
<p dir="auto">Also, a separate question, is there a way to say - load this specific module as a separate chunk (e.g. highcharts which is quite large). That way it's not in entry chunk, it's not duplicated in the other chunks, but it's loaded and cached on it's own. Note that in this case, I'm not using async require like <code class="notranslate">require(["highcharts"])</code>.</p>
<p dir="auto">I am using <a href="https://github.com/altano/handlebars-loader">handlebars-loader</a> and when node_modules folder is linked from some other location Handlebars.SafeString is loaded from two location moduleA.SafeString and moduleB.SafeString</p>
<p dir="auto"><a href="https://github.com/feroc1ty/webpack-symbolic-link-bug/blob/master/dist/bundle.js">bundle</a> if you search inside of this bundle you will find two instance of function SafeString</p>
<p dir="auto">I have created demo so you can reproduce<br>
<a href="https://github.com/feroc1ty/webpack-symbolic-link-bug">https://github.com/feroc1ty/webpack-symbolic-link-bug</a></p>