Skip to content

Comments

feat: expose version#8456

Merged
patak-dev merged 1 commit intomainfrom
feat/version
Jun 3, 2022
Merged

feat: expose version#8456
patak-dev merged 1 commit intomainfrom
feat/version

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