DEV Community

Discussion on: State Management with a Single Line of Code

Collapse
 
dabalyan profile image
Ankit Singh

only 8kB gzipped, and it's tree-shakeable too, that's what would go to production, not all the 1.64MBs of documentation, typings, and unpacked code.

Collapse
 
aisone profile image
Aaron Gong

Thank you for the good effort.

Yes it is 8KB gzip, will also need to add 11kb for rxjs (but this is ok for those who have use case for rxjs).

The next step is to make the library have as little dependencies as possible. One that does not have breaking changes or at least are easily manageable.

Thread Thread
 
dabalyan profile image
Ankit Singh

my pleasure :)

not quite correct, those 8kBs include all the RxJS dependencies that ActiveJS has, and 8kBs are for projects that are going to use ActiveJS without a module bundler, the target use case of ActiveJS is going to be modern Web-Apps built with modern frameworks, all of them have a module bundler like webpack, to eliminate any unused/dead-code from the bundle, see en.wikipedia.org/wiki/Tree_shaking.

Dependency on RxJS is a feature not a bug ;)
Since the ActiveJS Units extend RxJS' Observable class, it gives you the possibility to use all the myriads of RxJS operators.