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

refactor: use resolvePackageData to get rollup version #18208

Merged

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Sep 27, 2024

Description

Simplified the code by using the exposed VERSION variable from rollup.

This variable has been exposed since rollup 0.47.0 (rollup/rollup@e345879).

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Sep 27, 2024
Copy link

stackblitz bot commented Sep 27, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev
Copy link
Member

patak-dev commented Sep 27, 2024

We already did this here:

And then later reverted it because we were loading rollup at dev startup, see:

Maybe we should add more comments because I think we will keep trying to do this in the future 👀

@sapphi-red
Copy link
Member Author

Ah, definitely we need a comment 😅

@sapphi-red sapphi-red changed the title refactor: use exported VERSION from rollup refactor: use resolvePackageData to get rollup version Sep 27, 2024
@patak-dev patak-dev merged commit 220d6ec into vitejs:main Sep 27, 2024
13 checks passed
@sapphi-red sapphi-red deleted the refactor/use-exposed-version-from-rollup branch September 27, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1-chore Doesn't change code behavior (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants