Skip to content

Commit 22ad82c

Browse files
Update dependency @vitejs/plugin-react to v4.7.0 (#24443)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@vitejs/plugin-react](https://redirect.github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme) ([source](https://redirect.github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react)) | [`4.6.0` -> `4.7.0`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.6.0/4.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-react/4.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-react/4.6.0/4.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react)</summary> ### [`v4.7.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#470-2025-07-18) [Compare Source](https://redirect.github.com/vitejs/vite-plugin-react/compare/12bd153622731890678e43367e30c4a212d74376...80417060f7bc239d5100e1b47c819e8364c7d551) ##### Add HMR support for compound components ([#&#8203;518](https://redirect.github.com/vitejs/vite-plugin-react/pull/518)) HMR now works for compound components like this: ```tsx const Root = () => <div>Accordion Root</div> const Item = () => <div>Accordion Item</div> export const Accordion = { Root, Item } ``` ##### Return `Plugin[]` instead of `PluginOption[]` ([#&#8203;537](https://redirect.github.com/vitejs/vite-plugin-react/pull/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: ```tsx // previously this causes type errors react({ babel: { plugins: ['babel-plugin-react-compiler'] } }) .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' })) ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - Between 05:00 PM and 11:59 PM, only on Friday ( * 17-23 * * 5 ), Only on Sunday and Saturday ( * * * * 0,6, ), Between 12:00 AM and 12:59 PM, only on Monday ( * 0-12 * * 1 ) (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/TryGhost/Ghost). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent a7cffb4 commit 22ad82c

File tree

11 files changed

+69
-70
lines changed

11 files changed

+69
-70
lines changed

apps/admin-x-design-system/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@testing-library/react": "14.3.1",
4343
"@testing-library/react-hooks": "8.0.1",
4444
"@types/lodash-es": "4.17.12",
45-
"@vitejs/plugin-react": "4.6.0",
45+
"@vitejs/plugin-react": "4.7.0",
4646
"autoprefixer": "10.4.21",
4747
"c8": "10.1.3",
4848
"chai": "4.5.0",

apps/admin-x-framework/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@testing-library/react": "14.3.1",
7878
"@types/react": "18.3.23",
7979
"@types/react-dom": "18.3.7",
80-
"@vitejs/plugin-react": "4.6.0",
80+
"@vitejs/plugin-react": "4.7.0",
8181
"c8": "10.1.3",
8282
"eslint-plugin-react-hooks": "4.6.2",
8383
"eslint-plugin-react-refresh": "0.4.20",

apps/admin-x-settings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@types/react": "18.3.23",
5454
"@types/react-dom": "18.3.7",
5555
"@types/validator": "13.15.2",
56-
"@vitejs/plugin-react": "4.6.0",
56+
"@vitejs/plugin-react": "4.7.0",
5757
"eslint-plugin-react-hooks": "4.6.2",
5858
"eslint-plugin-react-refresh": "0.4.20",
5959
"eslint-plugin-tailwindcss": "3.18.2",

apps/announcement-bar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
]
7979
},
8080
"devDependencies": {
81-
"@vitejs/plugin-react": "4.6.0",
81+
"@vitejs/plugin-react": "4.7.0",
8282
"jsdom": "24.1.3",
8383
"vite": "5.4.19",
8484
"vite-plugin-svgr": "3.3.0",

apps/comments-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@testing-library/react": "12.1.5",
6565
"@testing-library/user-event": "14.6.1",
6666
"@tryghost/i18n": "0.0.0",
67-
"@vitejs/plugin-react": "4.6.0",
67+
"@vitejs/plugin-react": "4.7.0",
6868
"@vitest/coverage-v8": "0.34.6",
6969
"autoprefixer": "10.4.21",
7070
"bson-objectid": "2.0.4",

apps/portal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@testing-library/jest-dom": "5.17.0",
8585
"@testing-library/react": "12.1.5",
8686
"@tryghost/i18n": "0.0.0",
87-
"@vitejs/plugin-react": "4.6.0",
87+
"@vitejs/plugin-react": "4.7.0",
8888
"@vitest/coverage-v8": "1.6.1",
8989
"@vitest/ui": "1.6.1",
9090
"concurrently": "8.2.2",

apps/shade/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@types/lodash-es": "4.17.12",
4545
"@types/node": "22.16.4",
4646
"@types/react-world-flags": "1.6.0",
47-
"@vitejs/plugin-react": "4.6.0",
47+
"@vitejs/plugin-react": "4.7.0",
4848
"autoprefixer": "10.4.21",
4949
"c8": "10.1.3",
5050
"chai": "4.5.0",

apps/signup-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@tryghost/i18n": "0.0.0",
5353
"@types/react": "18.3.23",
5454
"@types/react-dom": "18.3.7",
55-
"@vitejs/plugin-react": "4.6.0",
55+
"@vitejs/plugin-react": "4.7.0",
5656
"autoprefixer": "10.4.21",
5757
"concurrently": "8.2.2",
5858
"eslint-plugin-react-hooks": "4.6.2",

apps/sodo-search/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"devDependencies": {
8383
"@testing-library/jest-dom": "5.17.0",
8484
"@testing-library/react": "12.1.5",
85-
"@vitejs/plugin-react": "4.6.0",
85+
"@vitejs/plugin-react": "4.7.0",
8686
"jsdom": "24.1.3",
8787
"nock": "13.5.6",
8888
"vite": "5.4.19",

apps/stats/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@types/jest": "29.5.14",
4242
"@types/react": "18.3.23",
4343
"@types/react-svg-map": "2.1.4",
44-
"@vitejs/plugin-react": "4.6.0",
44+
"@vitejs/plugin-react": "4.7.0",
4545
"dotenv": "16.6.1",
4646
"msw": "2.10.4",
4747
"vite": "5.4.19",

0 commit comments

Comments
 (0)