Hi Deepak,
Sorry for the delay in getting back to you.
We validated your query and would like to let you know that when the GridModule alone is injected without any additional services the generated file size will be around 1.19 MB. This is the default size without any additional services injected. But when we go on to injecting Grid services like, Filter, Page, Sort the dependencies for these services will also be included in the generated file which increases the file size. Since these three services(Filter, Page, Sort) are injected along with the Grid module in the provided sample, the generated file size is around 1.68 mb. This will be the default size of the generated script file and it cannot be reduced.
Like consider the Grid filtering service which has these filters - Filter Bar, Menu, Checkbox and Excel Filter. With this other EJ2 controls like, dropdown, checkbox, autocomplete are rendered for the Menu/Excel filter and so for this case, these control dependencies will also have to be included in the generated file. So the generated file size will depend on the injected module and services and it cannot be reduced as it only includes the injected modules.
Let us know if you have any concerns.
Regards,
Sujith R