What is bundled into vendor.bundle.js?

angular, angular-cli, webpack

Solution

I think any modules imported into the app.module.ts file will show up in the vendor bundle.

Example app.module.ts:

@NgModule({
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    RouterModule,
  ],
...

Problem

The angular-cli is producing `vendor.bundle.js` when executing a build. What are the rules of what is going to be considered packed under `vendor.bundle.js`?

Original source