Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ag-Grid Enterprise - Compress #13

Open
jorgelaranjo opened this issue Jun 23, 2023 · 0 comments
Open

Ag-Grid Enterprise - Compress #13

jorgelaranjo opened this issue Jun 23, 2023 · 0 comments

Comments

@jorgelaranjo
Copy link

jorgelaranjo commented Jun 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant