CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 490 forks source link

bundle size #221

Closed elvisbegovic closed 7 years ago

elvisbegovic commented 7 years ago

In my angular4 app I use this plugin and I wonder why my vendor bundle is multiplied by 1.5 when using angular-tree-component it's big, I just wonder if it's normal size

without angular-tree-component vendor = 564 Ko with angular-tree-component vendor = 823 Ko

mobx and ng2-mobx is about 150kb and lodash-es is about 600kb

image

how can we optimize this and remove mobx and lodash for this component

v. 3.2.3

cc @adamkleingit

adamkleingit commented 7 years ago

Hi, are you using webpack?

--

On Wed, Mar 15, 2017 at 10:06 AM, vltr notifications@github.com wrote:

I use this plugin and I wonder why my vendor bundle is multiplied by 1.5 when using angular-tree-component it's big, I just wonder if it's normal size

without angular-tree-component vendor = 564 Ko with angular-tree-component vendor = 823 Ko

v. 3.2.3

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/500tech/angular-tree-component/issues/221, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2SSg85s-3dgV778TPO3sVwPvUGEGaiks5rl5v8gaJpZM4Mdm7e .

elvisbegovic commented 7 years ago

yes im (angular cli rc2)

when I disable angular-tree-component i don't have lodash-es modx.js and angular-tree-component size (lodash is big as angular core)

@adamkleingit

adamkleingit commented 7 years ago

Yes something is broken with the tree shaking - this is a duplicate of #211

elvisbegovic commented 7 years ago

ok will close this one and hope fix will soon be available

cc @adamkleingit