<p dir="auto">I'm from the moment.js (<a href="https://github.com/moment">http://github.com/moment</a>) team, and some of our users that are also your users voice concerns that because of the way webpack is implemented all moment locale files (currently 104) are bundled together, and that increases the size of what is downloaded to the browser.</p>
<p dir="auto">Recently there was a suggested "fix" in the moment code (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168856175" data-permission-text="Title is private" data-url="https://github.com/moment/moment/issues/3344" data-hovercard-type="pull_request" data-hovercard-url="/moment/moment/pull/3344/hovercard" href="https://github.com/moment/moment/pull/3344">moment/moment#3344</a>), but then we figured it broke the require mechanism for other environments.</p>
<p dir="auto">Also we happen to have no instructions on how to use moment and webpack (like here: <a href="http://momentjs.com/docs/#/use-it/" rel="nofollow">http://momentjs.com/docs/#/use-it/</a>).</p>
<p dir="auto">Can you please give us a hand by saying what is the right way to use moment with webpack, so it won't include all locale files if the user wants so. I hope this will decrease number of issues sent to both projects :)</p>
<p dir="auto">Note: A webpack user suggested the following: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26100593" data-permission-text="Title is private" data-url="https://github.com/moment/moment/issues/1435" data-hovercard-type="issue" data-hovercard-url="/moment/moment/issues/1435/hovercard?comment_id=187100876&amp;comment_type=issue_comment" href="https://github.com/moment/moment/issues/1435#issuecomment-187100876">moment/moment#1435 (comment)</a> but nobody has documented it yet: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135963901" data-permission-text="Title is private" data-url="https://github.com/moment/momentjs.com/issues/269" data-hovercard-type="issue" data-hovercard-url="/moment/momentjs.com/issues/269/hovercard" href="https://github.com/moment/momentjs.com/issues/269">moment/momentjs.com#269</a></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><br>
Declaring multiple loaders with same <code class="notranslate">test</code> but different <code class="notranslate">issuer</code> stopped working in webpack 4</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>



<p dir="auto">See <a href="https://github.com/Hypnosphi/webpack-issuer-repro">https://github.com/Hypnosphi/webpack-issuer-repro</a><br>
Note the duplicate keys <code class="notranslate">./circle.svg</code> <a href="https://github.com/Hypnosphi/webpack-issuer-repro/blob/master/dist/main.js#L27-L47">https://github.com/Hypnosphi/webpack-issuer-repro/blob/master/dist/main.js#L27-L47</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><code class="notranslate">a.js</code> should get base64-encoded string, and <code class="notranslate">b.js</code> should get the file reference</p>