Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @vitejs/plugin-react to v4.3.3 #1752

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vitejs/plugin-react (source) 4.3.0 -> 4.3.3 age adoption passing confidence

Release Notes

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

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


Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • 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 requested a review from a team as a code owner October 23, 2024 16:13
@renovate renovate bot added the renovate Changes by renovate label Oct 23, 2024
@renovate renovate bot enabled auto-merge (rebase) October 23, 2024 16:13
Copy link

cypress bot commented Oct 23, 2024

frontend    Run #1766

Run Properties:  status check passed Passed #1766  •  git commit 68a89409d0 ℹ️: Merge 7b61b9a5be84f168f3ac6a3467b876f95cb14aea into fc0fbbe683d2cbbc78c195e09a5c...
Project frontend
Branch Review renovate/vitejs-plugin-react-4.x
Run status status check passed Passed #1766
Run duration 01m 38s
Commit git commit 68a89409d0 ℹ️: Merge 7b61b9a5be84f168f3ac6a3467b876f95cb14aea into fc0fbbe683d2cbbc78c195e09a5c...
Committer renovate[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32
View all changes introduced in this branch ↗︎

@renovate renovate bot merged commit 4c29df0 into main Oct 23, 2024
9 checks passed
@renovate renovate bot deleted the renovate/vitejs-plugin-react-4.x branch October 23, 2024 16:24
Copy link

cypress bot commented Oct 23, 2024

frontend    Run #1774

Run Properties:  status check passed Passed #1774  •  git commit 4c29df0e8d: chore(deps): update dependency @vitejs/plugin-react to v4.3.3
Project frontend
Branch Review main
Run status status check passed Passed #1774
Run duration 01m 39s
Commit git commit 4c29df0e8d: chore(deps): update dependency @vitejs/plugin-react to v4.3.3
Committer renovate[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
renovate Changes by renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants