Building ag-Grid with Rollup.js
We walk through the main steps required when using ag-Grid with Rollup.js.
@ag-grid-community/all-modules
package which will include all features of ag-Grid.
If you're using Rollup to reduce your bundle size you probably want to be selective in which packages you include - please
see the Modules documentation for more information.Initialise Project
Install Dependencies
Create Application
Our application will be a very simple one, consisting of a single file that will render a simple grid:
Rollup Configuration
Our rollup.ag-grid.json
is very simple in this example:
Building our bundle
We can now build our bundle:
The resulting bundle will be available in ./dist/ag-bundle.js
If we now serve index-ag-grid.html
our grid will be rendered as expected:
