You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Additional context
React - v19
Vite - v6
react-force-graph-3d - v1.24.6
The text was updated successfully, but these errors were encountered:
MylesWardell
changed the title
Three.js Bundle Bloat
[Bundlephobia] Three.js Bundle Bloat
Dec 10, 2024
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
Additional context
The text was updated successfully, but these errors were encountered: