diff --git a/packages/plugin-react/CHANGELOG.md b/packages/plugin-react/CHANGELOG.md index 2c828369..246ef63e 100644 --- a/packages/plugin-react/CHANGELOG.md +++ b/packages/plugin-react/CHANGELOG.md @@ -2,7 +2,13 @@ ## Unreleased -- Fix [#211](https://github.com/vitejs/vite-plugin-react/issues/211): Add `@types/babel__cores` to dependencies +## 4.1.0 (2023-09-24) + +- Add `@types/babel__cores` to dependencies (fix [#211](https://github.com/vitejs/vite-plugin-react/issues/211)) +- Improve build perf when not using Babel plugins by lazy loading `@babel/core` [#212](https://github.com/vitejs/vite-plugin-react/pull/212) +- Better invalidation message when an export is added & fix HMR for export of nullish values [#215](https://github.com/vitejs/vite-plugin-react/pull/215) +- Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime [#224](https://github.com/vitejs/vite-plugin-react/pull/224) +- The build output now contains a `index.d.cts` file so you don't get types errors when setting `moduleResolution` to `node16` or `nodenext` in your tsconfig (we recommend using `bundler` which is more close to how Vite works) ## 4.0.4 (2023-07-31) diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index 1aa6f605..ee5ef0dc 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@vitejs/plugin-react", - "version": "4.0.4", + "version": "4.1.0", "license": "MIT", "author": "Evan You", "contributors": [ @@ -15,7 +15,6 @@ "types": "./dist/index.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" }