Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 26, 2024

This PR contains the following updates:

Package Change Age Confidence
@types/react (source) 18.2.79 -> 19.1.12 age confidence
@types/react-dom (source) 18.2.25 -> 19.1.9 age confidence
@vitejs/plugin-react (source) 4.2.1 -> 5.0.2 age confidence
vite (source) 5.2.9 -> 7.1.5 age confidence

Release Notes

vitejs/vite-plugin-react (@​vitejs/plugin-react)

v5.0.2

Compare Source

Skip transform hook completely in rolldown-vite in dev if possible (#​783)

v5.0.1

Compare Source

Set optimizeDeps.rollupOptions.transform.jsx instead of optimizeDeps.rollupOptions.jsx for rolldown-vite (#​735)

optimizeDeps.rollupOptions.jsx is going to be deprecated in favor of optimizeDeps.rollupOptions.transform.jsx.

Perf: skip babel-plugin-react-compiler if code has no "use memo" when { compilationMode: "annotation" } (#​734)
Respect tsconfig jsxImportSource (#​726)
Fix reactRefreshHost option on rolldown-vite (#​716)
Fix RefreshRuntime being injected twice for class components on rolldown-vite (#​708)
Skip babel-plugin-react-compiler on non client environment (689)

v5.0.0

Compare Source

v4.7.0

Compare Source

Add HMR support for compound components (#​518)

HMR now works for compound components like this:

const Root = () => <div>Accordion Root</div>
const Item = () => <div>Accordion Item</div>

export const Accordion = { Root, Item }
Return Plugin[] instead of PluginOption[] (#​537)

The return type has changed from react(): PluginOption[] to more specialized type react(): Plugin[]. This allows for type-safe manipulation of plugins, for example:

// previously this causes type errors
react({ babel: { plugins: ['babel-plugin-react-compiler'] } })
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

v4.6.0

Compare Source

Add raw Rolldown support

This plugin only worked with Vite. But now it can also be used with raw Rolldown. The main purpose for using this plugin with Rolldown is to use react compiler.

v4.5.2

Compare Source

Suggest @vitejs/plugin-react-oxc if rolldown-vite is detected #​491

Emit a log which recommends @vitejs/plugin-react-oxc when rolldown-vite is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: false in the plugin options.

Use optimizeDeps.rollupOptions instead of optimizeDeps.esbuildOptions for rolldown-vite #​489

This suppresses the warning about optimizeDeps.esbuildOptions being deprecated in rolldown-vite.

Add Vite 7-beta to peerDependencies range #​497

React plugins are compatible with Vite 7, this removes the warning when testing the beta.

v4.5.1

Compare Source

Add explicit semicolon in preambleCode #​485

This fixes an edge case when using HTML minifiers that strips line breaks aggressively.

v4.5.0

Compare Source

Add filter for rolldown-vite #​470

Added filter so that it is more performant when running this plugin with rolldown-powered version of Vite.

Skip HMR for JSX files with hooks #​480

This removes the HMR warning for hooks with JSX.

v4.4.1

Compare Source

Fix type issue when using moduleResolution: "node" in tsconfig #​462

v4.4.0

Compare Source

Make compatible with rolldown-vite

This plugin is now compatible with rolldown-powered version of Vite.
Note that currently the __source property value position might be incorrect. This will be fixed in the near future.

v4.3.4

Compare Source

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" })

v4.3.3

Compare Source

React Compiler runtimeModule option removed

React Compiler was updated to accept a target option and runtimeModule was removed. vite-plugin-react will still detect runtimeModule for backwards compatibility.

When using a custom runtimeModule or target !== '19', the plugin will not try to pre-optimize react/compiler-runtime dependency.

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 @&#8203;babel/plugin-transform-react-jsx-development
export default defineConfig(({ command }) => {
  const babelPlugins = [['babel-plugin-react-compiler', { target: '18' }]]
  if (command === 'serve') {
    babelPlugins.push(['@&#8203;babel/plugin-transform-react-jsx-development', {}])
  }

  return {
    plugins: [react({ babel: { plugins: babelPlugins } })],
  }
})

v4.3.2

Compare Source

Ignore directive sourcemap error #​369

v4.3.1

Compare Source

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/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'.

v4.3.0

Compare Source

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 to work, you should update your config to something like:

export default defineConfig(({ command }) => {
  const babelPlugins = [['babel-plugin-react-compiler', {}]]
  if (command === 'serve') {
    babelPlugins.push(['@&#8203;babel/plugin-transform-react-jsx-development', {}])
  }

  return {
    plugins: [react({ babel: { plugins: babelPlugins } })],
  }
})
Support HMR for class components

This is a long overdue and should fix some issues people had with HMR when migrating from CRA.

vitejs/vite (vite)

v7.1.5

Compare Source

Bug Fixes

v7.1.4

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring

v7.1.3

Compare Source

Features
Bug Fixes
Performance Improvements
Miscellaneous Chores
Code Refactoring
Tests

v7.1.2

Compare Source

Bug Fixes
Miscellaneous Chores

v7.1.1

Compare Source

Bug Fixes
Miscellaneous Chores

v7.1.0

Compare Source

Features
  • support files with more than 1000 lines by generateCodeFrame (#​20508) (e7d0b2a)
Bug Fixes
Tests

v7.0.7

Compare Source

Please refer to CHANGELOG.md for details.

v7.0.6

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring

v7.0.5

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring

v7.0.4

Compare Source

Bug Fixes
  • allow resolving bare specifiers to relative paths for entries (#​20379) (324669c)
Build System

v7.0.3

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring
  • minor changes to reduce diff between normal Vite and rolldown-vite (#​20354) (2e8050e)

v7.0.2

Compare Source

Bug Fixes

v7.0.1

Compare Source

Bug Fixes
Miscellaneous Chores

v7.0.0

Compare Source

v6.3.6

Compare Source

Please refer to CHANGELOG.md for details.

v6.3.5

Compare Source

v6.3.4

Compare Source

Bug Fixes
  • check static serve file inside sirv (#​19965) (c22c43d)
  • optimizer: return plain object when using require to import externals in optimized dependencies (#​19940) (efc5eab)
Code Refactoring

v6.3.3

Compare Source

v6.3.2

Compare Source

Features
Bug Fixes

v6.3.1

Compare Source

Bug Fixes

v6.3.0

Compare Source

v6.2.7

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.6

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.5

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.4

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.3

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.2

Compare Source

v6.2.1

Compare Source

Features
  • add *?url&no-inline type and warning for .json?inline / .json?no-inline (#​19566) (c0d3667)
Bug Fixes
  • css: stabilize css module hashes with lightningcss in dev mode (#​19481) (92125b4)
  • deps: update all non-major dependencies (#​19555) (f612e0f)
  • reporter: fix incorrect bundle size calculation with non-ASCII characters (#​19561) (437c0ed)
  • sourcemap: combine sourcemaps with multiple sources without matched source (#​18971) (e3f6ae1)
  • ssr: named export should overwrite export all (#​19534) (2fd2fc1)
Performance Improvements
Miscellaneous Chores
Code Refactoring
Tests

v6.2.0

Compare Source

Bug Fixes
Miscellaneous Chores

v6.1.6

Compare Source

Please refer to CHANGELOG.md for details.

v6.1.5

Compare Source

Please refer to CHANGELOG.md for details.

v6.1.4

Compare Source

Please refer to CHANGELOG.md for details.

v6.1.3

Compare Source

Please refer to CHANGELOG.md for details.

v6.1.2

Compare Source

Please refer to CHANGELOG.md for details.

v6.1.1

Compare Source

Features
Bug Fixes
Miscellaneous Chores
Code Refactoring

v6.1.0

Compare Source

Features
Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from 1573bf4 to 6c6d050 Compare December 2, 2024 14:25
@renovate renovate bot changed the title Update devDependencies (major) chore(deps): update dependency vite to v6 Dec 2, 2024
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 6c6d050 to a5960a6 Compare December 5, 2024 18:40
@renovate renovate bot changed the title chore(deps): update dependency vite to v6 chore(deps): update devdependencies (major) Dec 5, 2024
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from c0e9b49 to 0266827 Compare December 9, 2024 23:26
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from 9c9591b to f2da98d Compare December 20, 2024 14:43
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from f2da98d to f77c4b5 Compare December 26, 2024 05:19
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from b1836c4 to 03237be Compare January 8, 2025 21:30
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from c06c48e to 1bdced1 Compare January 14, 2025 09:47
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 4 times, most recently from a80d896 to fa79aa0 Compare January 23, 2025 12:13
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from fa79aa0 to f46f265 Compare February 5, 2025 17:25
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from 7d9af7b to cc82fd7 Compare February 19, 2025 13:29
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from cc82fd7 to 0913060 Compare February 25, 2025 03:29
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 0913060 to 244bbf8 Compare March 7, 2025 03:21
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 244bbf8 to abe7735 Compare March 14, 2025 07:08
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from 49bf9d0 to 248a277 Compare May 12, 2025 23:40
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 248a277 to 9343c87 Compare May 13, 2025 12:59
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from dcacc6d to 7902976 Compare May 27, 2025 12:19
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from 07ca21d to 984da18 Compare June 9, 2025 23:34
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 984da18 to 140b136 Compare June 11, 2025 14:32
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 140b136 to ce70267 Compare June 24, 2025 11:24
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 4 times, most recently from ceeb71f to ffcd25e Compare July 10, 2025 14:05
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from ffcd25e to 5a50374 Compare July 17, 2025 04:25
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 5a50374 to bd40015 Compare July 24, 2025 08:02
Copy link

coderabbitai bot commented Jul 24, 2025

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • auto-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/major-devdependencies branch 4 times, most recently from 6810fb3 to 0004dd3 Compare August 12, 2025 05:36
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from 66c0902 to 81cdaa9 Compare August 22, 2025 19:41
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 5 times, most recently from 1185867 to 4665086 Compare September 1, 2025 23:08
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 4665086 to 8dcbd6a Compare September 8, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants