nitro
nitro copied to clipboard
Make provider dependencies optional
Currently, we have some small dependencies that are only usable for some presets:
- @cloudflare/kv-asset-handler
- @netlify/functions
- archiver (for azure)
Their install size overhead is very small (3.4M non-shared!) but this can be a problem if we are more presets that require such dependencies. Currently we do not include any cli and suggest using npx
for tools such as wrangler
and miniflare
Once we had the ability to auto-install deps, we can come back to this as check cons/pros.
Also related: https://github.com/nuxt/framework/issues/2642