nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.16k stars 507 forks source link

reduce dependency size #2739

Closed SuperchupuDev closed 1 month ago

SuperchupuDev commented 1 month ago

Describe the feature

a few potential improvements i've noticed:

chokidar v3 -> v4 (it drops all 13 subdependencies but one) fs-extra -> normal modern node:fs usage globby -> tinyglobby

Additional information

pi0 commented 1 month ago

Thanks for the suggestions.

Next version of nitro v2 will drop fs-extra because we didn't need it that much (https://github.com/unjs/nitro/pull/2743)

Changing glob lib is tricky and needs more consideration before we adopt something lighter across unjs ecosystem, most likely happening in nitro v3 and for chokiar since watchOptions was exposed to users, it is a breaking change to upgrade but easy one for nitro v3.