title: angularjs+typescript webpack excluding external module
body: <p>i have following angularjs+typescript project structure:
  src 
    someModule
    secondModule</p>
  
  <p>seсondModule uses services from someModule via angularjs DI</p>
  
  <p>in real project someModule and secondModule are included in html via script tags separately like</p>
  
  <pre><code>&lt;script src="someModule-bundle.js"&gt;&lt;/script&gt; 
  &lt;script src="secondModule-bundle.s"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>so i want to exclude someModule from secondModule-bundle.js</p>
  
  <p>How to do it via webpack?</p>
  
  <p>i tried this config </p>
  
  <pre><code>externals: [{
      'angular': 'angular',
      'jquery': 'jQuery',
      'lodash': '_',
      'moment': 'moment',
  
  },
      'src/someModule'
  ],
  </code></pre>
  
  <p>and someModule is still in secondModule-bundle.js</p>