liriliri / licia

Useful utility collection with zero dependencies
https://licia.liriliri.io
MIT License
2.29k stars 158 forks source link

Discussion: should native Promise be used when it is possible? #14

Closed hjkcai closed 4 years ago

hjkcai commented 4 years ago

In some cases I do not want a Promise polyfill so that minimal bundle size is kept. I can make sure that my environment has Promise polyfill correctly. So far I have to make use of build tools to ban the Promise module in licia.

surunzi commented 4 years ago

Only a few modules are dependent on Promise module. How do you import licia modules?

hjkcai commented 4 years ago

No I have not started to use it yet. This is just a question I come up with when I was wandering around licia's docs.

BTW licia seems lack of promise utils like https://github.com/hjkcai/promise-utils

surunzi commented 4 years ago

Not all utils will be included, only the popular ones(with huge number of npm downloads) or those I personally consider to be useful.