ag-grid-svelte icon indicating copy to clipboard operation
ag-grid-svelte copied to clipboard

Ag-Grid Enterprise - Compress

Open jorgelaranjo opened this issue 1 year ago • 0 comments

How can one use this approach ( https://blog.ag-grid.com/minimising-bundle-size/#how-to-minimise-your-bundle-size ) with ag-grid-svelte to minize the size used with ag-grid lib as it may go to 2.6MB which is excessive most times, if we don't use all features.

using

<script context="module">
	import { LicenseManager } from '@ag-grid-enterprise/core';
	import { ModuleRegistry } from '@ag-grid-community/core';
	import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';

	ModuleRegistry.registerModules([ServerSideRowModelModule]);
</script>

still results on

AG Grid: unable to use rowModelType = 'serverSide' as the ServerSideRowModelModule is not registered. Check if you have registered the module:
           
    import { ModuleRegistry } from '@ag-grid-community/core';
    import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
    
    ModuleRegistry.registerModules([ ServerSideRowModelModule ]);

For more info see: https://www.ag-grid.com/javascript-grid/modules/

The saving were also not very large, 500KB at best I reckon.

jorgelaranjo avatar Jun 23 '23 18:06 jorgelaranjo