Make wrangler
optional when installing the Cloudflare adapters
#11986
Milestone
wrangler
optional when installing the Cloudflare adapters
#11986
Describe the problem
Currently, we use wrangler to emulate the
event.platform
variable for cloudflare bindings, etc during development.But the
wrangler
package is pretty big and is not exactly essential if you're not planning on using any of the cloudflare services such as D1 databases, etc. (which is unlikely) or if you're just creating a quick repro on stackblitz. This makes dependency install times much longer (potentially affecting CI/CD for builds and tests? I'm not well versed in that area).Additionally, your app simply won't run on environments such as stackblitz where workerd is not supported.
https://stackblitz.com/edit/sveltejs-kit-template-default-rnvvem?file=svelte.config.js
cc: @dario-piotrowicz how are other frameworks handling this? and is this even worth pursuing?
Describe the proposed solution
Is it possible for us to make it an optional dependency or a peer optional dependency? Would that prevent it from being installed automatically?
Alternatives considered
Maybe this isn't even worth pursuing and we'd only want the cloudflare adapters to work in environments that can run a workerd emulation by wrangler.
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: