uppy/examples/react/package.json
Prakash 85a95ec634 chore(deps): upgrade examples/react to vite 8 + @vitejs/plugin-react 6
- vite ^7.1.11 → ^8.0.14 (rolldown bundler)
- @vitejs/plugin-react ^4.6.0 → ^6.0.2 (peer-requires vite ^8; drops Babel
  for oxc/rolldown)
- @tailwindcss/vite ^4.1.11 → ^4.3.0 (first 4.x with vite ^8 peer support)
- vitest.config.ts: add resolve.dedupe ['react','react-dom'] — vite 8/rolldown
  no longer auto-dedupes React across the linked @uppy/react workspace, which
  otherwise causes "Invalid hook call" / two React copies.

The example-react Webcam browser test is quarantined (test.skip): under vite 8
it passes in isolation but fails when run right after the ScreenCapture test
(the "Webcam" button click silently doesn't open the modal). This is a
test-isolation/sequencing issue between the two media-modal tests, not a
product bug — dedupe, cleanup(), globals:true and chromium fake-media flags
were all tried without success. See the FIXME in the test.

Verified: example-react build (vite 8.0.14) green, tests 4 pass / 1 skip,
typecheck 83/83, biome clean.
2026-05-31 22:20:04 +05:30

36 lines
928 B
JSON

{
"name": "example-react",
"private": true,
"type": "module",
"scripts": {
"build": "tsc && vite build",
"test": "vitest run",
"dev": "vite",
"serve": "vite preview"
},
"dependencies": {
"@tailwindcss/vite": "^4.3.0",
"@uppy/core": "workspace:*",
"@uppy/react": "workspace:*",
"@uppy/remote-sources": "workspace:*",
"@uppy/screen-capture": "workspace:*",
"@uppy/tus": "workspace:*",
"@uppy/webcam": "workspace:*",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.9"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^6.0.2",
"@vitest/browser": "^4.1.6",
"@vitest/browser-playwright": "^4.1.6",
"msw": "^2.10.4",
"playwright": "1.57.0",
"typescript": "^5.7.3",
"vite": "^8.0.14",
"vitest": "^4.1.6",
"vitest-browser-react": "^2.2.0"
}
}