From 117f37139e90e79ec75782c0bf3de9b9df568902 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 21 Jan 2025 13:49:48 +0200
Subject: [PATCH] Bump @vitejs/plugin-react from 4.2.1 to 4.3.4 (#993)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps
[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react)
from 4.2.1 to 4.3.4.
Sourced from Vite 6 is highly backward compatible, not much to add! The default was an old spec ( React Compiler was updated to accept a When using a custom The react-compiler-runtime
is now available on npm can be used instead of the local shim for people
using the compiler with React < 19. Here is the configuration to use the compiler with React 18 and
correct source maps in development: return {
plugins: [react({ babel: { plugins: babelPlugins } })],
}
})
Release notes
@vitejs/plugin-react's
releases.
v4.3.4
Add Vite 6 to peerDependencies range
Force Babel to output spec compliant import attributes #386
with type:
"json"). We now enforce spec compliant (with {
type: "json" })v4.3.3
React Compiler runtimeModule option removed
target option and
runtimeModule was removed. vite-plugin-react will still
detect runtimeModule for backwards compatibility.runtimeModule or target !==
'19', the plugin will not try to pre-optimize
react/compiler-runtime dependency.npm install babel-plugin-react-compiler
react-compiler-runtime @babel/plugin-transform-react-jsx-development
export default defineConfig(({ command }) => {
const babelPlugins = [['babel-plugin-react-compiler', { target: '18' }]]
if (command === 'serve') {
babelPlugins.push(['@babel/plugin-transform-react-jsx-development', {}])
}
Ignore directive sourcemap error #369
The previous version made this assumption that the compiler was only
usable with React 19, but it's possible to use it with React 18 and a
custom runtimeModule: https://gist.github.com/poteto/37c076bf112a07ba39d0e5f0645fec43
When using a custom runtimeModule, the plugin will not
try to pre-optimize react/compiler-runtime dependency.
Reminder: Vite expect code outside of node_modules to be
ESM, so you will need to update the gist with import React from
'react'.
... (truncated)
Sourced from @vitejs/plugin-react's
changelog.
4.3.4 (2024-11-26)
Add Vite 6 to peerDependencies range
Vite 6 is highly backward compatible, not much to add!
Force Babel to output spec compliant import attributes #386
The default was an old spec (
with type: "json"). We now enforce spec compliant (with { type: "json" })4.3.3 (2024-10-19)
React Compiler runtimeModule option removed
React Compiler was updated to accept a
targetoption andruntimeModulewas removed. vite-plugin-react will still detectruntimeModulefor backwards compatibility.When using a custom
runtimeModuleortarget !== '19', the plugin will not try to pre-optimizereact/compiler-runtimedependency.The react-compiler-runtime is now available on npm can be used instead of the local shim for people using the compiler with React < 19.
Here is the configuration to use the compiler with React 18 and correct source maps in development:
npm install babel-plugin-react-compiler react-compiler-runtime @babel/plugin-transform-react-jsx-developmentexport default defineConfig(({ command }) => { const babelPlugins = [['babel-plugin-react-compiler', { target: '18' }]] if (command === 'serve') { babelPlugins.push(['@babel/plugin-transform-react-jsx-development', {}]) }return { plugins: [react({ babel: { plugins: babelPlugins } })], } })
4.3.2 (2024-09-29)
Ignore directive sourcemap error #369
4.3.1 (2024-06-10)
Fix support for React Compiler with React 18
The previous version made this assumption that the compiler was only usable with React 19, but it's possible to use it with React 18 and a custom
runtimeModule: https://gist.github.com/poteto/37c076bf112a07ba39d0e5f0645fec43When using a custom
runtimeModule, the plugin will not try to pre-optimizereact/compiler-runtimedependency.
... (truncated)
2e368a6
release: plugin-react@4.3.4bde1ad6
feat: add Vite 6 to peerDependencies range (#390)45a727c
fix(deps): update all non-major dependencies (#373)5d2b6c6
fix: force non-legacy import attributes babel output (#386)b61592a
release: plugin-react@4.3.3e8a923f
fix: add react-dom in optimizeOps to handle
CJS script. (#375)7a7e339
feat: support new React Compiler target option (#374)63b2e38
release: plugin-react@4.3.2fdf6ce4
fix(deps): update all non-major dependencies (#273)4544e97
feat: update refresh utils for React Router 7 support (#363)