nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Make provider dependencies optional

Open pi0 opened this issue 2 years ago • 0 comments

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

pi0 avatar Apr 12 '22 16:04 pi0