chore(deps): update dependency @vitejs/plugin-react to v4.2.1 (v1)
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@vitejs/plugin-react (source) | devDependencies | minor | 4.1.0 -> 4.2.1 |
Release Notes
vitejs/vite-plugin-react (@vitejs/plugin-react)
v4.2.1
Remove generic parameter on Plugin
to avoid type error with Rollup 4/Vite 5 and skipLibCheck: false
.
I expect very few people to currently use this feature, but if you are extending the React plugin via api
object, you can get back the typing of the hook by importing ViteReactPluginApi
:
import type { Plugin } from 'vite'
import type { ViteReactPluginApi } from '@​vitejs/plugin-react'
export const somePlugin: Plugin = {
name: 'some-plugin',
api: {
reactBabel: (babelConfig) => {
babelConfig.plugins.push('some-babel-plugin')
},
} satisfies ViteReactPluginApi,
}
v4.2.0
Update peer dependency range to target Vite 5
There were no breaking change that impacted this plugin, so any combination of React plugins and Vite core version will work.
Align jsx runtime for optimized dependencies
This will only affect people using internal libraries that contains untranspiled JSX. This change aligns the optimizer with the source code and avoid issues when the published source don't have React
in the scope.
Reminder: While being partially supported in Vite, publishing TS & JSX outside of internal libraries is highly discouraged.
v4.1.1
- Enable retainLines to get correct line numbers for jsxDev (fix #235)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.