Topic: Bundle Size
Hutton pro asked 2 months ago
Expected behavior I am following the modular import guide (https://mdbootstrap.com/docs/b4/angular/getting-started/importing-modules/) and importing only the modules my application requires. Unfortunately it doesnt make any difference to the overall bundle size after build which is still large.
Can you please confirm that for the version I am using it would be expected that the bundle size should decrease when importing only modules that are required and not 'MDBBootstrapModulesPro.forRoot()' Thanks
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB4 9.4.0
- Device: pc
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 2 months ago
The build size should decrease when you use only specific modules.
We received some reports of problems with tree shaking in older versions, but we did not find any errors in the way the library was configured.
Could you please provide more information about the modules and tools you used in your tests and check if the problem still occurs in the latest MDB Angular 4 (14.0.0) version?