Idea: what would it take to run wrangler in a non-Node environment? #1916
GregBrimble
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the recent WfP GA announcement, what would it take to be able to offer a decent Workers development experience for people who want to build the platform entirely on Workers?
Right now, if platforms want their users to be able to author the Workers in a fully-fledged environment with multiple files and TypeScript and all the features that wrangler handles in the bundling process, they'd need to run wrangler (or their own tool) in a proper Node environment. This is pretty painful if everything else can be done in the Cloudflare Developer Platform.
So, a wishlist:
bin/wrangler.jsglobalThis.fetchif present.fsusage and accept anfs-compatible API, or refactor to use something else more platform-agnostic (FileSystem API?)wrangler publish --dry-runproducing an output that we can give to the Workers for Platforms APIunstable_devworking in a browser and document an example of how to use it to power an iframePages is doing something somewhat related to the penultimate point about a portable Workers format right now internally anyway. Would be good to see if there's interest in making that a public thing too. Regardless of WfP, there's probably a valid use-case where you want to
wrangler publish --dry-runand then laterwrangler publish <artifact>.And finally, Pages also has a use-case today for
wrangler pages functions buildworking in the browser. This needs the esbuild-wasm andfspieces.Beta Was this translation helpful? Give feedback.
All reactions