Summary
Once all feasible chart components are migrated away from Plotly (see #609, #663), remove react-plotly.js and plotly.js from the dependency tree to reduce bundle size significantly.
Prerequisites
Current Plotly footprint
plotly.js adds ~3MB to the bundle (minified). Even with code splitting, it's a significant chunk. If we can eliminate all Plotly usage, the savings are substantial.
What needs to happen
- Migrate or confirm each remaining Plotly chart (tracked separately)
- If blog/notebook Plotly JSON must stay, consider lazy-loading Plotly only for those routes
- Remove
react-plotly.js and plotly.js from package.json
- Remove Plotly mock from test setup (
vitest.setup.mjs)
- Update
.claude/skills/chart-standards.md to remove Plotly references
Context
Related: #609, #663
Summary
Once all feasible chart components are migrated away from Plotly (see #609, #663), remove
react-plotly.jsandplotly.jsfrom the dependency tree to reduce bundle size significantly.Prerequisites
Current Plotly footprint
plotly.jsadds ~3MB to the bundle (minified). Even with code splitting, it's a significant chunk. If we can eliminate all Plotly usage, the savings are substantial.What needs to happen
react-plotly.jsandplotly.jsfrompackage.jsonvitest.setup.mjs).claude/skills/chart-standards.mdto remove Plotly referencesContext
Related: #609, #663