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
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:
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'.
4.3.0 (2024-05-22)
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:
If your project is using CommonJS, you can rename your Vite config to use the .mjs or .mts extension (depending on whether you use TypeScript or not). If you're not using Vite v5.0.0+, you may want to pin your dependency to v4 of this plugin.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the vite group with 5 updates in the / directory:
4.2.1
4.3.2
1.4.0
2.1.3
5.2.9
5.4.9
4.3.2
5.0.1
1.4.0
2.1.3
Updates
@vitejs/plugin-react
from 4.2.1 to 4.3.2Release notes
Sourced from
@vitejs/plugin-react
's releases.Changelog
Sourced from
@vitejs/plugin-react
's changelog.Commits
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)d88c581
fix: ignore directive sourcemap error (#369)1609186
release: plugin-react@4.3.1ea647d1
fix: handle using compiler with React 18 (#330)7e7322a
release: plugin-react@4.3.04b4a95c
fix: don't use retainLines with react compiler (#319)2b7f2ae
fix: support HMR for class components (#320)302a323
docs: add minimum react version (#321)Updates
@vitest/ui
from 1.4.0 to 2.1.3Release notes
Sourced from
@vitest/ui
's releases.... (truncated)
Commits
4c03a0d
chore: release v2.1.30ce26a4
chore: release v2.1.2e7f3521
fix: moveVitest.setServer
to postconfigureServer
hook to enable import ...d0bf89d
fix(ui): list tests on ui when--standalone
(#6577)699055e
chore: release v2.1.19f1fd18
chore: release v2.1.094a186e
fix(ui): render project name consistently (#6329)b2be23e
chore: release v2.1.0-beta.70223bb7
fix(ui): remove "filters" flickering (#6463)97773e2
chore: fix edge case in license files bundling (#6460)Updates
vite
from 5.2.9 to 5.4.9Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
898d61f
release: v5.4.9508d9ab
fix: bump launch-editor-middleware to v2.9.1 (#18348)dc5434c
fix(deps): bump tsconfck (#18322)851b258
fix(hmr): don't try to rewrite imports for direct CSS soft invalidation (#18252)96084d6
fix(data-uri): only match ids starting withdata:
(#18241)eae00b5
fix(css): fix lightningcss dep url resolution with custom root (#18125)c23558a
chore: update all url references of vitejs.dev to vite.dev (#18276)1864eb1
chore: update license copyright (#18278)ae44163
docs: update homepage (#18274)262a879
fix(ssr): (backport #18150) fix source map remapping with multiple sources (#...Updates
vite-tsconfig-paths
from 4.3.2 to 5.0.1Release notes
Sourced from vite-tsconfig-paths's releases.
Commits
c2b0b4c
5.0.1ae80736
chore(fix): restore "main" and "types" fields in package.json29093ed
5.0.066d478e
chore: update readme notice5ff0d6a
chore: drop CJS build (#151)03ffe4a
chore: update readme announcementfc2da50
chore: update lockfilesUpdates
vitest
from 1.4.0 to 2.1.3Release notes
Sourced from vitest's releases.
... (truncated)
Commits
4c03a0d
chore: release v2.1.370baaaa
fix(vitest): usefast-glob
instead oftinyglobby
in Vitest (#6688)19d64e2
fix(vitest): always inline setup files (#6689)47dde76
fix(vitest): show rollup error details as test error (#6686)7155cee
refactor(coverage): move re-usable parts to base provider (#6665)7a0de0a
perf: reuse full name in reported tasks, update generator types (#6666)8bef5d2
fix(browser): not.toBeInTheDocument works with locators API (#6634)9ece395
fix(vitest): fix\<empty line>
logs when interleavingconsole.log/error
(#...000459a
fix(vitest): deprecate old task types and node-reliant types (#6632)946d8bb
fix(vitest): don't hang with maxConcurrency 0 (#6627)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show