Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ag-grid enterprise bundle size

I am using ag-grid but came to know about it's huge bundle size which makes it impossible to add it into the website due to the obvious concerns being raised about increase in bundle size.

I have tried the approach to use modules @ag-grid-community/core which again is 1.88mb in bundle size.

Is there any other approach to decrease the bundle size further and exclude different modules?

Is it the similar case with ag-grid-enterprise? I can see if I include it without license it download ag-grid-community/core module too which again defeat the purpose.

enter image description here

like image 968
Pooja Bansal Avatar asked Mar 04 '26 15:03

Pooja Bansal


1 Answers

Edit: Dec 2024 AG Grid v33 has great improvements in terms of bundle size, up to 40% in the best case.

See the migration guide

You will find that the majority of the code is in the @ag-grid-community/core package and so is the largest part of AG Grid. This code is shared by the enterprise featurs.

Using the grid feature modules, as described in the docs you will be able to just add the enterprise features that you require. As such you may find that the bundle size does not increase that much when moving to Enterprise

I have written the following article that walks through this.

like image 99
Stephen Cooper Avatar answered Mar 07 '26 10:03

Stephen Cooper