Hutton pro asked 1 year 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

  • 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