title: Bundling entire module including its components in Angular 4
body: <p>For production release, i want each module as a separate bundle because if any changes happened in future ill just replace that particular module alone. Currently, im bundling modules via lazyloading in angular 4 but in that bundle,  components code are not available it was in main.bundle.js. How to do?
  Sample structure below,</p>
  
  <blockquote>
    <p>-app<br>
    --module1<br>
    ---component1.ts<br>
    ---component1.css<br>
    --module2<br>
    ---component2.ts<br>
    ---component2.css<br>
    --app.component.ts<br>
    --app.component.html  </p>
  </blockquote>