<p dir="auto">Using <code class="notranslate">import()</code> with a module seems to just give it an id as a name. It would be nice to either be able to name the chunk, or to use a name derived from the name of the import.</p>
<p dir="auto">I have <code class="notranslate">require('moment')</code> in my own module, also I use <code class="notranslate">bootstrap-daterangepicker</code> which also depends on <code class="notranslate">moment</code>, then I saw this in my build log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ./~/moment/moment.js 104 kB {0} [built]
 ...
[10] ./~/bootstrap-daterangepicker/~/moment/moment.js 104 kB {0} [built]"><pre class="notranslate"><code class="notranslate"> ./~/moment/moment.js 104 kB {0} [built]
 ...
[10] ./~/bootstrap-daterangepicker/~/moment/moment.js 104 kB {0} [built]
</code></pre></div>
<p dir="auto">it seems <code class="notranslate">moment.js</code> has been bundled two times by webpack, and I have enabled <code class="notranslate">DedupePlugin</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    plugins: [
        new webpack.optimize.DedupePlugin(),
        new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), 
...
    ],"><pre class="notranslate">    <span class="pl-s1">plugins</span>: <span class="pl-kos">[</span>
        <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">DedupePlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
        <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">IgnorePlugin</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">^</span><span class="pl-cce">\.</span><span class="pl-cce">\/</span>locale<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span>moment<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">,</span> 
...
    <span class="pl-kos">]</span><span class="pl-kos">,</span></pre></div>
<p dir="auto">How to get rid of the duplication?</p>