Skip to content

Remove the unused React Three scene and dependencies - #1551

Merged
manudeli merged 3 commits into
mainfrom
chore/remove-unused-react-three
Nov 22, 2026
Merged

manudeli merged 3 commits into
mainfrom
chore/remove-unused-react-three

Conversation

@manudeli

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the unused React Three Fiber scene and its hooks. Island Explorer already runs through VanillaGameScene and the Three.js engine.
  • Keep the ship and rock culling distances in the active engine.
  • Remove @react-three/drei, @react-three/fiber, 28 exclusively transitive packages, and the corresponding Knip ignore entries.

Verification

  • The frozen pnpm lockfile check, formatting, and changed-file lint passed.
  • The production Vite build passed with Redact disabled for local analysis. The build includes the active Three.js engine, and the baseline and updated client bundle reports both omit the React Three packages.
  • Knip runs in CI. The local dependency installation did not include its executable.

Related pull requests

@manudeli
manudeli requested a review from a team November 22, 2026 16:51
@changeset-bot

changeset-bot Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: cad0c3a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93aa49fa-194b-409c-82c9-de8b2167617e
Commits

Reviewing files that changed from the base of the PR and between 8c1e50a and cad0c3a.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 28

  • knip.jsonc
  • package.json
  • src/components/game/engine/entities/AIShips.ts
  • src/components/game/engine/entities/OceanRocks.ts
  • src/components/game/hooks/useAIOpponents.ts
  • src/components/game/hooks/useBoatControls.ts
  • src/components/game/hooks/useDistanceCulling.ts
  • src/components/game/scene/AIShips.tsx
  • src/components/game/scene/BeachChair.tsx
  • src/components/game/scene/Boat.tsx
  • src/components/game/scene/BoundaryWalls.tsx
  • src/components/game/scene/Cannonballs.tsx
  • src/components/game/scene/Coin.tsx
  • src/components/game/scene/Dinghy.tsx
  • src/components/game/scene/Flag.tsx
  • src/components/game/scene/GameScene.tsx
  • src/components/game/scene/Island.tsx
  • src/components/game/scene/IslandInfo3D.tsx
  • src/components/game/scene/IslandLobe.tsx
  • src/components/game/scene/Ocean.tsx
  • src/components/game/scene/OceanRocks.tsx
  • src/components/game/scene/PalmTree.tsx
  • src/components/game/scene/Ship.tsx
  • src/components/game/scene/Sky.tsx
  • src/components/game/scene/TikiShack.tsx
  • src/components/game/scene/VirtualizedCoins.tsx
  • src/components/game/scene/VirtualizedIslands.tsx
  • src/components/game/ui/TouchControls.tsx
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19580.19 KiB 19580.12 KiB 🟢 -0.07 KiB (-0.00%)
JavaScript (gzip) 6443.22 KiB 6443.11 KiB 🟢 -0.11 KiB (-0.00%)
CSS 831.83 KiB 831.79 KiB 🟢 -0.05 KiB (-0.01%)
CSS (gzip) 127.01 KiB 127.00 KiB 🟢 -0.01 KiB (-0.01%)
Page Main (gzip) PR merge build (gzip) Change
/ 596.09 KiB 596.09 KiB 🟢 -0.00 KiB (-0.00%)
/libraries 538.78 KiB 538.79 KiB 🔴 +0.01 KiB (+0.00%)
/start/latest 563.55 KiB 563.57 KiB 🔴 +0.02 KiB (+0.00%)
/router/latest 563.85 KiB 563.86 KiB 🔴 +0.01 KiB (+0.00%)
/query/latest 562.30 KiB 562.31 KiB 🔴 +0.01 KiB (+0.00%)
/table/latest 595.11 KiB 595.13 KiB 🔴 +0.02 KiB (+0.00%)
/charts/latest 644.42 KiB 644.43 KiB 🔴 +0.01 KiB (+0.00%)
/ai/latest 589.21 KiB 589.23 KiB 🔴 +0.02 KiB (+0.00%)
Docs article 549.84 KiB 549.84 KiB 🔴 +0.00 KiB (+0.00%)
Framework docs article 549.84 KiB 549.84 KiB 🔴 +0.00 KiB (+0.00%)
/blog 542.98 KiB 542.99 KiB 🔴 +0.01 KiB (+0.00%)
/maintainers 542.08 KiB 542.08 KiB 🔴 +0.00 KiB (+0.00%)
/showcase 540.04 KiB 540.05 KiB 🔴 +0.00 KiB (+0.00%)
/chat 538.50 KiB 538.51 KiB 🔴 +0.01 KiB (+0.00%)
/chat/c/:conversationId 539.21 KiB 539.21 KiB 🔴 +0.00 KiB (+0.00%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at 8c1e50a. Gzip sizes are summed per file. Build run

sukvvon
sukvvon previously approved these changes Nov 22, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com cad0c3a Commit Preview URL

Branch Preview URL
Nov 22 2026, 05:22 PM

@manudeli
manudeli merged commit fde8fcf into main Nov 22, 2026
11 checks passed
@manudeli
manudeli deleted the chore/remove-unused-react-three branch November 22, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants