Bundle size is too big

Stimulsoft Dashboards.JS discussion
Post Reply
AndreySE
Posts: 13
Joined: Mon Apr 11, 2022 8:19 am

Bundle size is too big

Post by AndreySE »

Hi,

the bundle size is too big (is about 11 Mb), is any way to make it smaller?
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Bundle size is too big

Post by Max Shamanov »

Hello,

We are always working on reducing the bundle size. If you want, you can use pack.js files in your project, these files are smaller in size.

Thank you.
AndreySE
Posts: 13
Joined: Mon Apr 11, 2022 8:19 am

Re: Bundle size is too big

Post by AndreySE »

Thank you Max, but how to use packed version with angular?
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Bundle size is too big

Post by Max Shamanov »

Hello,

Unfortunatley packed version can be only used in native js.

Thank you.
AndreySE
Posts: 13
Joined: Mon Apr 11, 2022 8:19 am

Re: Bundle size is too big

Post by AndreySE »

I did some research and found that *.pack.js is packed original script by Brotli, as all our requests are JZipped the overall difference is around 20 percents only, so it's not much.
Anyway, it's possible to use Angular imports from pack-files this way:

Code: Select all

import {
  Stimulsoft,
  StiOptions
} from 'stimulsoft-dashboards-js/Scripts/stimulsoft.dashboards.pack';
Upd: please, add corresponding ts definitions for *.pack.js files (stimulsoft.designer.pack.d.ts for ex) as IDE cannot find ts definition for pack files
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Bundle size is too big

Post by Lech Kulikowski »

Hello,

Please send us your request with detailed description on support@stimulsoft.com.

Thank you.
Post Reply