Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 22, 2024
1 parent 4b4a95c commit 7e7322a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/plugin-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## 4.3.0 (2024-05-22)

### Fix support for React compiler

Don't set `retainLines: true` when the React compiler is used. This creates whitespace issues and the compiler is modifying the JSX too much to get correct line numbers after that. If you want to use the React compiler and get back correct line numbers for tools like [vite-plugin-react-click-to-component](https://github.com/ArnaudBarre/vite-plugin-react-click-to-component) to work, you should update your config to something like:
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitejs/plugin-react",
"version": "4.2.1",
"version": "4.3.0",
"license": "MIT",
"author": "Evan You",
"contributors": [
Expand Down

0 comments on commit 7e7322a

Please sign in to comment.