-
Notifications
You must be signed in to change notification settings - Fork 1k
add VITE_VERSION_TO_TEST
environment variable to control what version of vite is used for the vite plugin playground tests
#10900
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…on of vite is used for the vite plugin playground tests
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
import * as rolldownVite from "rolldown-vite"; | ||
import * as defaultVite from "vite"; | ||
import * as vite6 from "vite-6"; | ||
import * as vite7 from "vite-7"; |
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.
having a separate/specific vite7
is unnecessary and I could just use defaultVite
for testing vite 7, I just included this because I think that clearly separating the default vite module and the vite 7 one makes things clearer, I am happy to just reuse defaultVite
if people don't like this
Fixes https://jira.cfdata.org/browse/DEVX-2232
Note
This PR introduces the variable that can be used locally to change the vite version being used for the playground tests, it is not adding this to the github workflows because currently the vite plugin doesn't seem to work well with vite 6 and rolldown-vite, once it does we should also use this variable in CI to run the playground tests against all (supported) vite versions