From 7e7322a3b7b3364f7efad2d28289f06c86831131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Wed, 22 May 2024 20:48:30 +0200 Subject: [PATCH] release: plugin-react@4.3.0 --- packages/plugin-react/CHANGELOG.md | 2 ++ packages/plugin-react/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugin-react/CHANGELOG.md b/packages/plugin-react/CHANGELOG.md index 0e27cae4..b597e2d1 100644 --- a/packages/plugin-react/CHANGELOG.md +++ b/packages/plugin-react/CHANGELOG.md @@ -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: diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index f4d95189..1693be2f 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@vitejs/plugin-react", - "version": "4.2.1", + "version": "4.3.0", "license": "MIT", "author": "Evan You", "contributors": [