devextreme-angular icon indicating copy to clipboard operation
devextreme-angular copied to clipboard

Devextreme Bundlesize

Open MarioGruda opened this issue 9 years ago • 3 comments

devexteme version:  17.1.5
devextreme-angular version: 17.1.5
  • Specify the type of the issue (check one with "x"): [ ] bug Report [ ] feature request [x ] support inquiry

Hello,

we are using devextreme in our angular 4 application. For now we are using only the datagrid and the treeview. Our bundle-size has grown dramatically. We have checked the bundle with the Webpack bundle anzalyzer and devextreme is much bigger than angular + any other library. Here is an overview of the current devextreme size (without devextreme-angular): 2017-08-17 15_52_58-webpack bundle analyzer

We are importing the grid and treeview with the "longpath" devextreme-angular/ui/data-grid

Is this the normal bundle-size for grid+treeview or can we optimize the size?

Thank you

MarioGruda avatar Aug 17 '17 13:08 MarioGruda

Hi Moira, take a look at this and it may help you: https://community.devexpress.com/blogs/aspnet/archive/2016/08/30/devextreme-and-modularity-bundles-requirejs-and-webpack.aspx

Mehul avatar Aug 18 '17 18:08 Mehul

I can`t see any difference to my project.

I have created a minimal new project with angular-cli (v 1.3.0) and installed everything for devextreme.

Between these two imports, there is no difference in bundle size:

import { DxDataGridModule } from 'devextreme-angular'; import { DxDataGridModule } from 'devextreme-angular/ui/data-grid';

Everything from devextreme gets imported.

MarioGruda avatar Aug 25 '17 07:08 MarioGruda

@MoiraG The grid needs all of these modules. So, you are getting the correct bundle size.

GoshaFighten avatar Aug 29 '17 21:08 GoshaFighten