Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!

Hutton pro asked 2 years 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()' Thanksenter image description here


Arkadiusz Idzikowski staff commented 1 year 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?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: 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