Skip to content
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

Merged
merged 10 commits into from Sep 27, 2022

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Sep 20, 2022

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... 馃檪

@changeset-bot
Copy link

changeset-bot bot commented Sep 20, 2022

馃 Changeset detected

Latest commit: cd9ef56

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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 mrbbot marked this pull request as draft September 20, 2022 19:38
@mrbbot mrbbot removed the request for review from petebacondarwin September 20, 2022 19:38
packages/wrangler/src/dev.tsx Show resolved Hide resolved
packages/wrangler/src/dev.tsx Outdated Show resolved Hide resolved
packages/wrangler/src/dev/dev.tsx Outdated Show resolved Hide resolved
@penalosa
Copy link
Contributor

@mrbbot couple of small things, but looks good!

@mrbbot mrbbot marked this pull request as ready for review September 26, 2022 16:59
Copy link
Contributor

@penalosa penalosa left a 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
@github-actions
Copy link
Contributor

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 with this latest build directly:

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

@mrbbot mrbbot merged commit ed646cf into main Sep 27, 2022
@mrbbot mrbbot deleted the miniflare3-experimental-local branch September 27, 2022 13:13
@github-actions github-actions bot mentioned this pull request Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants