agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications
https://agile-ts.org
MIT License
95 stars 8 forks source link

Outsource Collection into a separate package #162

Closed bennobuilder closed 3 years ago

bennobuilder commented 3 years ago

🆕 Feature Request

❓ Is your feature request related to a problem?

Big bundle size 🐘

📄 Describe the solution you'd like

I would like to install the Collection as a separate package when I really need it.

📃 Describe alternatives you've considered

Life with a larger bundle size, although I don't need the Collection feature.

bennobuilder commented 3 years ago

🟩 Pros

🟥 Cons

bennobuilder commented 3 years ago

https://github.com/agile-ts/agile/tree/experimental-outsource-collection

bennobuilder commented 3 years ago

Problems with optional types:

bennobuilder commented 3 years ago

Still considerable, but for now the Collection can be tree shaken away See: #186