<p dir="auto">I am having a lot of situations in which I am depending on some module from multiple files. I end up with the multiple occurances of that module in the output bundle, each of which has different id's. I would expect this module to occur once which is what I also need because most of these are singletons whose state I need accross the application.</p>
<p dir="auto">So far I don't have any good starting point. Are there any typical causes for this?</p>
<p dir="auto">Why cant I set flags?</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ webpack -v
2.1.0-beta.28
cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ cat package.json | grep webpack
    &quot;webpack&quot;: &quot;2.1.0-beta.28&quot;,
    &quot;webpack-dev-server&quot;: &quot;^1.16.2&quot;
cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ webpack --display-chunks

Option '--display-chunks' not supported. Trigger 'webpack -h' for more details.


cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ webpack-dev-server --inline --hot

Option '--inline' not supported. Trigger 'webpack-dev-server -h' for more details.
^C
cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ webpack
ts-loader: Using typescript@2.1.4 and /home/cescoferraro/code/go/src/github.com/cescoferraro/spotify/tsconfig.json
^C

cescoferraro@desktop: ~/code/go/src/github.com/cescoferraro/spotify on master [+!?]
$ webpack-dev-server
[HPM] Proxy created: **  -&gt;  http://localhost:8080
 http://localhost:8000/
webpack result is served from /
content is served from ./www
"><pre class="notranslate">cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ webpack -v
2.1.0-beta.28
cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ cat package.json <span class="pl-k">|</span> grep webpack
    <span class="pl-s"><span class="pl-pds">"</span>webpack<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>2.1.0-beta.28<span class="pl-pds">"</span></span>,
    <span class="pl-s"><span class="pl-pds">"</span>webpack-dev-server<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>^1.16.2<span class="pl-pds">"</span></span>
cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ webpack --display-chunks

Option <span class="pl-s"><span class="pl-pds">'</span>--display-chunks<span class="pl-pds">'</span></span> not supported. Trigger <span class="pl-s"><span class="pl-pds">'</span>webpack -h<span class="pl-pds">'</span></span> <span class="pl-k">for</span> more details.


cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ webpack-dev-server --inline --hot

Option <span class="pl-s"><span class="pl-pds">'</span>--inline<span class="pl-pds">'</span></span> not supported. Trigger <span class="pl-s"><span class="pl-pds">'</span>webpack-dev-server -h<span class="pl-pds">'</span></span> <span class="pl-k">for</span> more details.
^C
cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ webpack
ts-loader: Using typescript@2.1.4 and /home/cescoferraro/code/go/src/github.com/cescoferraro/spotify/tsconfig.json
^C

cescoferraro@desktop: <span class="pl-k">~</span>/code/go/src/github.com/cescoferraro/spotify on master [+<span class="pl-k">!</span><span class="pl-k">?</span>]
$ webpack-dev-server
[HPM] Proxy created: <span class="pl-k">**</span>  -<span class="pl-k">&gt;</span>  http://localhost:8080
 http://localhost:8000/
webpack result is served from /
content is served from ./www
</pre></div>