Skip to content

Upgrade to Vite 8.#65084

Merged
bbovenzi merged 2 commits intoapache:mainfrom
tirkarthi:gh63510-1
Apr 13, 2026
Merged

Upgrade to Vite 8.#65084
bbovenzi merged 2 commits intoapache:mainfrom
tirkarthi:gh63510-1

Conversation

@tirkarthi
Copy link
Copy Markdown
Contributor

@tirkarthi tirkarthi commented Apr 12, 2026

Upgrade to Vite 8 which uses rolldown and has better performance. It reduces the build time (pnpm build) by at least 2x. PR generated by pnpm install vite@8 command. Verified that pnpm dev and pnpm build works.

Upgraded dependencies for vite 8 compatibility

vitest 4.1.0 - vitest-dev/vitest#9587
plugin-react 6.0 supports vite 8 : pnpm install @vitejs/plugin-react@6.0.1
vitest 4.1.0 supports vite 8 : pnpm install @vitest/coverage-v8@4.1.4

node required version bumped to 22 for rolldown. Airflow CI already uses node version as 24. Hence no changes required.

https://github.com/rolldown/rolldown/blob/b15ec6078ef8a07ec40fa38b766d0bf9061fcde3/package.json#L47-L49

vitejs/vite#20822
rolldown/rolldown#6141

Update vite.config.ts https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md#remove-babel-related-features-1123

closes: #63510

Was generative AI tooling used to co-author this PR?
  • No

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Apr 12, 2026
@tirkarthi tirkarthi mentioned this pull request Apr 12, 2026
2 tasks
@eladkal eladkal added this to the Airflow 3.2.1 milestone Apr 12, 2026
@eladkal eladkal added the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label Apr 12, 2026
Copy link
Copy Markdown
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@bbovenzi bbovenzi merged commit bcd31b2 into apache:main Apr 13, 2026
82 checks passed
@github-actions
Copy link
Copy Markdown

Backport failed to create: v3-2-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test Commit Link

You can attempt to backport this manually by running:

cherry_picker bcd31b2 v3-2-test

This should apply the commit to the v3-2-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

@bbovenzi
Copy link
Copy Markdown
Contributor

@tirkarthi this might need a manual backport

tirkarthi added a commit that referenced this pull request Apr 13, 2026
* Upgrade to Vite 8.

* Update vite.config.ts for plugin-react@6.0.0.
(cherry picked from commit bcd31b2)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
@tirkarthi
Copy link
Copy Markdown
Contributor Author

Thanks @bbovenzi , manual backport #65166

dandanseo123 pushed a commit to dandanseo123/airflow that referenced this pull request Apr 13, 2026
* Upgrade to Vite 8.

* Update vite.config.ts for plugin-react@6.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Vite 8

3 participants