I want to publish an npm package for use in cloudflare projects that includes a pre-written durable
I want to publish an npm package for use in cloudflare projects that includes a pre-written durable object. End users would install the package, add a couple lines to their
I have 2 questions:
wrangler.jsonc (unless there is a magic way to not do this step) — and viola they have this particular durable object working.I have 2 questions:
- This import
assumesimport { DurableObject } from "cloudflare:workers";
can be resolved, but of course that is only importable with a build tool like vite. Should I bundle cloudflare:workers as an internal dependency? What would the CF team recommend?cloudflare:workers - How does the
property of wrangler's config work? Can it resolve a class that is in a dependency?class_name

