Our pure JavaScript Scheduler component


Post by jmeire »

Hi

I upgraded to the latest version (4.1.0) and imported the Bryntum now through npm. When creating a build of my Angular project I discovered that the bundling size increased about 20% which seems pretty high to me.

Will this be tackled in the future?
This might also have something to do with the import through @bryntum/scheduler/scheduler.lite.umd.js instead of @bryntum/scheduler?

Kind regards
jmeire


Post by sergey.maltsev »

Hi!

Correct import should be with @bryntum/scheduler/scheduler.lite.umd.js.

Please check this https://www.bryntum.com/docs/scheduler/#guides/integration/angular.md guide

Size might be affected by using new wrappers package.

Could you please provide some more info on what version was used previously with attached application code (for old/new versions) we can build and check the sizes.


Post by jmeire »

Hi

Will the import in future released be updated to @bryntum/scheduler?
I think there is no tree shaking now during build so there is bundled more than needed.

Production build bundling size info:

Before version update (3.1.0)
libs 5.4mb --> parsed 1.5mb (Bryntum files were located here)
All (5.46 MB)
main-es2015.65e058657538da22afea.js (4.9 MB)
5-es2015.61788d23c19857f38520.js (396.31 KB)
polyfills-es5.5b776178b90fba1a449d.js (131.75 KB)
polyfills-es2015.23b1301729c523d53a6a.js (36.12 KB)
runtime-es2015.c1758b97465e9d74af38.js (2.23 KB)

After version update update (4.1.0) now with npm
libs +/- 3.6mb --> parsed +/- 0.6mb

@bryntum 9.1mb --> parsed 2.42mb (Bryntum npm package)

All files (6.56 MB)
main-es2015.7d69c31602eff443370c.js (6.39 MB)
polyfills-es5.5b776178b90fba1a449d.js (131.75 KB)
polyfills-es2015.23b1301729c523d53a6a.js (36.12 KB)
runtime-es2015.67ca981b344f3fc1cc39.js (2.23 KB)

All is increased with 1.1 MB.


Post by sergey.maltsev »

Hi!

Thanks for the info.
I've created this issue to investigate and improve this
https://github.com/bryntum/support/issues/2714


Post by bdent »

Hello- We are extremely interested in this as well. About 90+% of our bundle size is Bryntum related so anything we can do to reduce that would be great. I've checked the GitHub issue but don't see any updates.


Post by sergey.maltsev »

Hi!

Could you please check released 4.3.0 version for bundle size?
It should be less "heavy" than for 4.2.x.


Post Reply