Skip to content

refactor(react)!: drop Vite 7 and below support#1124

Open
sapphi-red wants to merge 5 commits intomainfrom
refactor/react-drop-vite7-and-below-support
Open

refactor(react)!: drop Vite 7 and below support#1124
sapphi-red wants to merge 5 commits intomainfrom
refactor/react-drop-vite7-and-below-support

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Feb 27, 2026

Description

Drops Vite 7 and below support from plugin-react.

As a preparation for #1123.

@sapphi-red sapphi-red marked this pull request as ready for review February 27, 2026 09:15
// https://github.com/vitejs/vite/blob/dd96c2cd831ecba3874458b318ad4f0a7f173736/packages/vite/src/node/optimizer/index.ts#L644
id = normalizePath(path.relative(process.cwd(), id))
if (optimizerMetadata?.ids.includes(id)) {
if (optimizerMetadata?.ids.map((id) => normalizePath(id)).includes(id)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This change is needed probably because of the change in vitejs/vite#21720

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