Skip to content

Migrate vite-plugin-cloudflare to workers-sdk#7763

Merged
CarmenPopoviciu merged 20 commits intomainfrom
pbd/add-vite-plugin
Jan 20, 2025
Merged

Migrate vite-plugin-cloudflare to workers-sdk#7763
CarmenPopoviciu merged 20 commits intomainfrom
pbd/add-vite-plugin

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

@petebacondarwin petebacondarwin commented Jan 14, 2025

Brings the vite-plugin-cloudflare package into workers-sdk


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because:
  • E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because: e2e tests are not related to this code
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: docs are included in the README of the package for now

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 14, 2025

🦋 Changeset detected

Latest commit: c9d2732

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/vite-plugin 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 14, 2025

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-wrangler-7763

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7763/npm-package-wrangler-7763

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-wrangler-7763 dev path/to/script.js
Additional artifacts:

cloudflare-workers-bindings-extension:

wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-workers-bindings-extension-7763 -O ./cloudflare-workers-bindings-extension.0.0.0-vd8e71f75c.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vd8e71f75c.vsix

create-cloudflare:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-create-cloudflare-7763 --no-auto-update

@cloudflare/kv-asset-handler:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-kv-asset-handler-7763

miniflare:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-miniflare-7763

@cloudflare/pages-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-pages-shared-7763

@cloudflare/unenv-preset:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-unenv-preset-7763

@cloudflare/vite-plugin:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-vite-plugin-7763

@cloudflare/vitest-pool-workers:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-vitest-pool-workers-7763

@cloudflare/workers-editor-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-workers-editor-shared-7763

@cloudflare/workers-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-workers-shared-7763

@cloudflare/workflows-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12866144419/npm-package-cloudflare-workflows-shared-7763

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.103.2 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20241230.2
workerd 1.20241230.0 1.20241230.0
workerd --version 1.20241230.0 2024-12-30

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@petebacondarwin petebacondarwin force-pushed the pbd/add-vite-plugin branch 6 times, most recently from f22eeec to dc11bc1 Compare January 15, 2025 21:32
@petebacondarwin petebacondarwin added the e2e Run wrangler + vite-plugin e2e tests on a PR label Jan 15, 2025
@petebacondarwin petebacondarwin added no-changeset-required and removed e2e Run wrangler + vite-plugin e2e tests on a PR labels Jan 15, 2025
@petebacondarwin petebacondarwin changed the title WIP - testing the migration of vite-plugin-cloudflare to workers-sdk Migrate vite-plugin-cloudflare to workers-sdk Jan 15, 2025
@petebacondarwin petebacondarwin marked this pull request as ready for review January 15, 2025 22:19
@petebacondarwin petebacondarwin requested a review from a team as a code owner January 15, 2025 22:19
@petebacondarwin petebacondarwin requested a review from a team January 15, 2025 22:19
Copy link
Copy Markdown
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.

I haven't reviewed vite-plugin-cloudflare since I assume it's already been reviewed in parts as it's developed, but everything else looks good other than a few comments

Comment thread CODEOWNERS Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like this team is public?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is "visible"... not sure how to make it more public than that...

image

Comment thread packages/wrangler/package.json Outdated
Comment thread pnpm-workspace.yaml Outdated
Copy link
Copy Markdown
Contributor

@jamesopstad jamesopstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a few suggestions.

Comment thread .prettierignore
Comment thread packages/vite-plugin-cloudflare/package.json Outdated
Comment thread packages/vite-plugin-cloudflare/package.json
Comment thread packages/vite-plugin-cloudflare/package.json Outdated
Comment thread packages/vite-plugin-cloudflare/package.json Outdated
Comment thread packages/vitest-pool-workers/vitest.config.mts Outdated
Comment thread CODEOWNERS
Copy link
Copy Markdown
Contributor Author

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Copy Markdown
Contributor

@jamesopstad jamesopstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added in some additional suggestions as there was a bit more time.

Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/README.md Outdated
Comment thread packages/vite-plugin-cloudflare/package.json
Comment thread packages/vite-plugin-cloudflare/package.json Outdated
jamesopstad and others added 2 commits January 20, 2025 10:23
* packages/vite-plugin-cloudflare -> packages/vite-plugin-cloudflare
* playground -> packages/vite-plugin-cloudflare/playground
* vitest.config.e2e.ts -> packages/vite-plugin-cloudflare/playground/vitest.config.ts

Co-authored-by: Peter Bacon Darwin <pete@bacondarwin.com>
Co-authored-by: Dario Piotrowicz <dario@cloudflare.com>
@CarmenPopoviciu CarmenPopoviciu merged commit 7e04493 into main Jan 20, 2025
@CarmenPopoviciu CarmenPopoviciu deleted the pbd/add-vite-plugin branch January 20, 2025 10:55
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.

4 participants