[React] Add React 19 support to devDependencies

Update react and react-dom devDependencies from ^18.0 to ^18.0 || ^19.0
to match the already-declared peerDependencies and prevent file: installs
from forcing React 18 in user projects that require React 19.
This commit is contained in:
Milan
2026-03-19 09:58:46 +01:00
parent 3c01aed999
commit f55a2c39eb
2 changed files with 4 additions and 4 deletions

4
pnpm-lock.yaml generated
View File

@@ -396,10 +396,10 @@ importers:
specifier: ^26.1.0
version: 26.1.0
react:
specifier: ^18.0
specifier: ^18.0 || ^19.0
version: 18.3.1
react-dom:
specifier: ^18.0
specifier: ^18.0 || ^19.0
version: 18.3.1(react@18.3.1)
tslib:
specifier: ^2.8.1

View File

@@ -67,8 +67,8 @@
"@types/webpack-env": "^1.16",
"@vitejs/plugin-react": "^4.1.0",
"jsdom": "^26.1.0",
"react": "^18.0",
"react-dom": "^18.0",
"react": "^18.0 || ^19.0",
"react-dom": "^18.0 || ^19.0",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"vitest": "^4.1.0"