-
Notifications
You must be signed in to change notification settings - Fork 0
Update dependency @vitejs/plugin-react to v4.7.0 #111
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Playwright Test ResultsDetails
Failed testsMicrosoft Edge › example.spec.ts › should navigate to the about page |
cbf9275
to
e04a0c6
Compare
e04a0c6
to
88b1ebc
Compare
88b1ebc
to
2209f04
Compare
2209f04
to
9386583
Compare
9386583
to
40decfc
Compare
40decfc
to
ab5d2b4
Compare
ab5d2b4
to
abd9175
Compare
abd9175
to
cf47f20
Compare
cf47f20
to
cbfe66d
Compare
cbfe66d
to
5e62599
Compare
5e62599
to
15e6607
Compare
This PR contains the following updates:
4.3.1
->4.7.0
Release Notes
vitejs/vite-plugin-react (@vitejs/plugin-react)
v4.7.0
Compare Source
Add HMR support for compound components (#518)
HMR now works for compound components like this:
Return
Plugin[]
instead ofPluginOption[]
(#537)The return type has changed from
react(): PluginOption[]
to more specialized typereact(): Plugin[]
. This allows for type-safe manipulation of plugins, for example: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 #491Emit a log which recommends
@vitejs/plugin-react-oxc
whenrolldown-vite
is detected to improve performance and use Oxc under the hood. The warning can be disabled by settingdisableOxcRecommendation: false
in the plugin options.Use
optimizeDeps.rollupOptions
instead ofoptimizeDeps.esbuildOptions
for rolldown-vite #489This 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 #470Added
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 #462v4.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 andruntimeModule
was removed. vite-plugin-react will still detectruntimeModule
for backwards compatibility.When using a custom
runtimeModule
ortarget !== '19'
, the plugin will not try to pre-optimizereact/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:
v4.3.2
Compare Source
Ignore directive sourcemap error #369
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Europe/London, 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.