bundle sizes and importing syncfusion modules

Hey
So we're using a bunch of syncfusion modules/components.
The main bundle is quite large with duplicated imported modules.

See the attachment zip (has bundle analyzer image)
If you see the ej2-nagations and ej2-dropsdowns have a lot of the same modules re-imported.
Our app is set as follows:
AppModule - imports SharedModule
SharedModule - imports+exports SyncfusionModule
SyncfusionModules - import+exports individual component modules
LAZY modules - import SharedModule

Our SyncfusionModule looks as follows: it imports and exports the following
import { ButtonModule } from '@syncfusion/ej2-ng-buttons';
import { DropDownListModule } from '@syncfusion/ej2-ng-dropdowns';
import { DialogModule, TooltipModel, TooltipModule } from '@syncfusion/ej2-ng-popups';
import { AccordionModule } from '@syncfusion/ej2-ng-navigations';
import { DatePickerModule } from '@syncfusion/ej2-angular-calendars';


Please advice if there is a better way.

Attachment: synfusionImports_d7e80732.zip

3 Replies

JR John Rajaram Syncfusion Team October 5, 2018 12:26 PM UTC

Hi Jatinder, 
Greetings from Syncfusion. 
We like to let you know that, we have deprecated the ng packages and replaced it with angular packages. Using both packages in the application may lead to installation of duplicate packages and also bundle size gets increased. We also have marked this as breaking change and documented the details regarding this in our documentation. Please find the release notes documentation in the below link. 
We suggest you to migrate to angular packages instead of using ng packages. Also we request you to maintain same package version for all the components. 
Please let us know if you need further assistance on this. 
Regards,
John R 



JA Jatinder October 5, 2018 01:40 PM UTC

Yup that helped a lot. 
I was caught in the middle of the package name change.

thanks


JR John Rajaram Syncfusion Team October 8, 2018 04:52 AM UTC

Hi Jatinder, 
We are glad that your issue has been resolved. Please let us know if you require any other assistance. 
Regards, 
John R 


Loader.
Up arrow icon