title: What is the purpose of and what should be included in the vendor.ts file for Angular2 w/ webpacks?
body: <p>The angular.io documentation for webpacks (<a href="https://angular.io/docs/ts/latest/guide/webpack.html" rel="nofollow noreferrer">https://angular.io/docs/ts/latest/guide/webpack.html</a>) separates app code from vendor code modules to create two separate bundles. It includes the following in the vendor.ts file - </p>
  
  <pre><code>// Angular
  import '@angular/platform-browser';
  import '@angular/platform-browser-dynamic';
  import '@angular/core';
  import '@angular/common';
  import '@angular/http';
  import '@angular/router';
  
  // RxJS
  import 'rxjs';
  </code></pre>
  
  <p>Am I wrong to infer that dependencies of the app listed in the <code>package.json</code> should be in vendor.ts? If so, it's confusing that many, but not all of the dependencies listed in the <code>package.json</code> are in the <code>vendor.ts</code> file (except for <code>"@angular/compiler", "@angular/forms", "core-js", and "zone.js"</code>). An answer to the title question that would help me understand why most, but not all of the dependencies in the vendor.ts file were imported would be appreciated. Also, as my project grows, how will I know if a dependency in package. json should be added to the <code>vendor.ts</code> file? </p>