Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bundlephobia] Three.js Bundle Bloat #695

Open
MylesWardell opened this issue Dec 10, 2024 · 0 comments
Open

[Bundlephobia] Three.js Bundle Bloat #695

MylesWardell opened this issue Dec 10, 2024 · 0 comments

Comments

@MylesWardell
Copy link

Describe the bug
Three.js is including what looks like a bunch of rendering engines. Can this be tree shaken down? I am running a build with Vite and doing a brief search online three.js apparently tree shakes plugins in the latest build. Any recommendations?

To Reproduce
Steps to reproduce the behavior:
Build with a package analyzer, I am using rollup-plugin-visualizer

Expected behavior
Tree shake out or at least give an option to choose what rendering engine to use with react-force-graph-3d/*. The bundle is 2.1MB on my analyzer 300 kb gzipped. I am already lazy loading it with so its not a huge deal.

Screenshots
image

Additional context

  • React - v19
  • Vite - v6
  • react-force-graph-3d - v1.24.6
@MylesWardell MylesWardell changed the title Three.js Bundle Bloat [Bundlephobia] Three.js Bundle Bloat Dec 10, 2024
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

No branches or pull requests

1 participant