What is bundled into vendor.bundle.js?

Issue

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?

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,
  ],
...

Answered By – Kevin LeStarge

Answer Checked By – Senaida (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.