title: How to solve module.id should be a string error using webpack2
body: <p>So I'm using webpack2 on a Angular2 project that has several external dependecies. Some of these dependencies are using commonjs and are declaring components like below:</p>
  
  <pre><code>@Component({
      moduleId: module.id,
      templateUrl: 'mycomponent.html'
      ...
  })
  </code></pre>
  
  <p>This causes the error below:</p>
  
  <pre><code>Error: moduleId should be a string in "MyComponent"
  </code></pre>
  
  <p>After some research, I figure out this is due to Webpack expecting components to have id as a number while Angular declares it as string. I cannot change the dependency code. What can I do to live with this kind of dependency?</p>
  
  <p>Thanks!</p>