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
merged 1 commit into from
Jun 3, 2022
Merged

feat: expose version #8456

merged 1 commit into from
Jun 3, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Jun 3, 2022

Allows

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
haoqunjiang added a commit to haoqunjiang/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:
https://github.com/ElMassimo/iles/blob/4618f4be7118c06324d74d87d35ba73c0767369b/packages/iles/src/node/cli.ts#L11
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.

2 participants