Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/plugin-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Remove old `babel-plugin-react-compiler` support that requires `runtimeModule` option

`runtimeModule` option is no longer needed in newer `babel-plugin-react-compiler` versions. Make sure to use a newer version of `babel-plugin-react-compiler` that supports `target` option.

## 4.7.0 (2025-07-18)

### Add HMR support for compound components ([#518](https://github.com/vitejs/vite-plugin-react/pull/518))
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,6 @@ function getReactCompilerRuntimeModule(
if (Array.isArray(plugin)) {
if (plugin[1]?.target === '17' || plugin[1]?.target === '18') {
moduleName = 'react-compiler-runtime'
} else if (typeof plugin[1]?.runtimeModule === 'string') {
// backward compatibility from (#374), can be removed in next major
moduleName = plugin[1]?.runtimeModule
}
}
return moduleName
Expand Down
Loading