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

fix(deps): update dependency @vitejs/plugin-react to v4.3.1 #11013

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 20, 2024

Mend Renovate

This PR contains the following updates:

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

Release Notes

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

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(['@​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.


Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) July 20, 2024 16:40
@Josh-Walker-GM Josh-Walker-GM added this to the next-release milestone Jul 20, 2024
@Josh-Walker-GM Josh-Walker-GM added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels Jul 20, 2024
@renovate renovate bot merged commit 30832ee into main Jul 20, 2024
49 of 56 checks passed
@renovate renovate bot deleted the renovate/vitejs-plugin-react-4.x branch July 20, 2024 17:04
dac09 added a commit to dac09/redwood that referenced this pull request Jul 21, 2024
…-dual-pkg

* 'main' of github.com:redwoodjs/redwood: (74 commits)
  chore(deps): Remove webpack related packages (redwoodjs#11028)
  fix(deps): update dependency pino to v9 (redwoodjs#11030)
  fix(deps): update dependency lru-cache to v11 (redwoodjs#11029)
  fix(deps): update dependency @sdl-codegen/node to v1 (redwoodjs#11027)
  chore(deps): update yarn to v4.3.1 (redwoodjs#11026)
  chore(deps): update dependency vitest to v2 (redwoodjs#11021)
  fix(deps): update dependency @react-email/render to v0.0.16 (redwoodjs#11025)
  chore(deps): update dependency rimraf to v6 (redwoodjs#11024)
  chore(deps): update dependency make-dir-cli to v4 (redwoodjs#11023)
  chore(deps): update dependency glob to v11 (redwoodjs#11022)
  chore(deps): update dependency type-fest to v4 (redwoodjs#11020)
  fix(deps): update dependency @whatwg-node/fetch to v0.9.18 (redwoodjs#11016)
  chore(deps): update dependency @supabase/ssr to v0.4.0 (redwoodjs#11017)
  fix(deps): update dependency @joshwooding/vite-plugin-react-docgen-typescript to v0.4.0 (redwoodjs#11018)
  fix(deps): update dependency esbuild to v0.23.0 (redwoodjs#11015)
  fix(deps): update dependency @swc/core to v1.7.0 (redwoodjs#11012)
  chore(storybook): Pin versions and update them (redwoodjs#11011)
  fix(deps): update dependency eslint-plugin-prettier to v5.2.1 (redwoodjs#11010)
  fix(deps): update dependency @vitejs/plugin-react to v4.3.1 (redwoodjs#11013)
  fix(deps): update dependency graphql-yoga to v5.6.1 (redwoodjs#11007)
  ...
@Josh-Walker-GM Josh-Walker-GM added release:dependency This PR only updates dependencies and removed release:chore This PR is a chore (means nothing for users) labels Jul 31, 2024
@Josh-Walker-GM Josh-Walker-GM modified the milestones: next-release, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:dependency This PR only updates dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant