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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose version #8456

merged 1 commit into from Jun 3, 2022

feat: expose version #8456

merged 1 commit into from Jun 3, 2022


Copy link

@antfu antfu commented Jun 3, 2022


import { version } from 'vite'

Similiar to what we had for

import { version } from 'vue'

@patak-dev patak-dev merged commit e992594 into main Jun 3, 2022
@patak-dev patak-dev deleted the feat/version branch June 3, 2022 14:20
sodatea added a commit to sodatea/vite that referenced this pull request Jun 28, 2022
We've only exposed the `version` field since vitejs#8456
Before that, users can only get the version number from `package.json`.

This fixes compatibility issue with iles:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants