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
?
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,
],
...
vendors.bundle.js
bundles every code imported by your app module: this includes local imports like components and services, but also third-party libs like lodash. It basically contains everything, so it's more interesting to see what's not in this file, mainly:
inline.bundle.js
: webpack loaderscripts.build.js
: all the scripts declared in angular-cli
's scripts
entrypolyfills.bundle.js
: polyfills declared in polyfills.bundle.js
More details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With