Skip to content

add mixed-mode support to vite-plugin#9308

Merged
jamesopstad merged 6 commits intomainfrom
dario/DEVX-1855/vite-plugin-mixed-mode
May 28, 2025
Merged

add mixed-mode support to vite-plugin#9308
jamesopstad merged 6 commits intomainfrom
dario/DEVX-1855/vite-plugin-mixed-mode

Conversation

@dario-piotrowicz
Copy link
Member

Fixes https://jira.cfdata.org/browse/DEVX-1855

This PR adds support to mixed-mode for the vite-plugin


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because:
  • Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because:
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: experimental feature
  • Wrangler V3 Backport
    • TODO (before merge)
    • Wrangler PR:
    • Not necessary because: experimental non-wrangler feature

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner May 19, 2025 18:45
@dario-piotrowicz dario-piotrowicz requested a review from a team May 19, 2025 18:45
@dario-piotrowicz dario-piotrowicz added e2e Run wrangler + vite-plugin e2e tests on a PR skip-v3-pr labels May 19, 2025
@changeset-bot
Copy link

changeset-bot bot commented May 19, 2025

🦋 Changeset detected

Latest commit: aab3ee8

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

This PR includes changesets to release 3 packages
Name Type
@cloudflare/vite-plugin Patch
wrangler Patch
@cloudflare/vitest-pool-workers 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
Contributor

github-actions bot commented May 19, 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/15307359171/npm-package-wrangler-9308
Prereleases for other packages:

cloudflare-workers-bindings-extension:

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

create-cloudflare:

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

@cloudflare/kv-asset-handler:

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

miniflare:

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

@cloudflare/pages-shared:

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

@cloudflare/unenv-preset:

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

@cloudflare/vite-plugin:

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

@cloudflare/vitest-pool-workers:

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

@cloudflare/workers-editor-shared:

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

@cloudflare/workers-shared:

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

@cloudflare/workflows-shared:

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

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

@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-1855/vite-plugin-mixed-mode branch 2 times, most recently from 82101f5 to 2301066 Compare May 22, 2025 11:17
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-1855/vite-plugin-mixed-mode branch 4 times, most recently from d35b44d to dc8e24a Compare May 27, 2025 18:38
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-1855/vite-plugin-mixed-mode branch from dc8e24a to 91f6732 Compare May 27, 2025 22:37
remove extra mixedModeConnectionString check
rename `resolveRemotesTo` to `mixedModeConnectionString`
avoid restarting mixed-mode sessions
@dario-piotrowicz dario-piotrowicz requested a review from penalosa May 28, 2025 10:18
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk May 28, 2025
Copy link
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! I don't love that this is coupling the Vite plugin more to Wrangler but it's fine for now. It would be good to discuss at some point if these utilities should live somewhere else.

Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
@jamesopstad jamesopstad added this pull request to the merge queue May 28, 2025
Merged via the queue into main with commit d3a6eb3 May 28, 2025
17 of 18 checks passed
@jamesopstad jamesopstad deleted the dario/DEVX-1855/vite-plugin-mixed-mode branch May 28, 2025 19:05
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run wrangler + vite-plugin e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants