New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial --experimental-local
implementation using Miniflare 3
#1894
Conversation
馃 Changeset detectedLatest commit: cd9ef56 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@mrbbot couple of small things, but looks good! |
Co-authored-by: Somhairle MacLe貌id <samuel@macleod.space>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
`workerd` currently throws on any use of the Cache API. Workers Sites requires the Cache API to function though, so stub it out to no-ops, like in regular `wrangler dev`.
These should've been caught/logged earlier.
# Conflicts: # package-lock.json # packages/wrangler/package.json # packages/wrangler/src/dev/local.tsx # packages/wrangler/src/publish.ts
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/3135850931/npm-package-wrangler-1894 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1894/npm-package-wrangler-1894 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/3135850931/npm-package-wrangler-1894 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.developers.workers.dev/runs/3135850931/npm-package-cloudflare-pages-shared-1894 |
This is a WIP implementation of an
--experimental-local
flag that uses a version of Miniflare powered by the open-source runtime. There are a few small TODOs still to resolve, but other than that... 馃檪