Skip to content

feat: add this.meta.viteVersion #20088

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

sapphi-red
Copy link
Member

Description

Built on top of #19936

This PR adds this.meta.viteVersion. This would allow plugins to get the version of Vite the dev server / build is running. It is slightly different from import { VERSION } from 'vite' as that would resolve to the dependency of that plugin.

Rollup has this.meta.rollupVersion and Rolldown has this.meta.rolldownVersion.

close #19355

@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant