Closed ajtucker closed 1 year ago
Suggested approach doesn't work as we are using react-plotly
which wraps the Plotly import and by default imports the whole bundle.
An alternative solution outlined here may however prove useful:
https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle
According to https://github.com/plotly/plotly.js/blob/master/dist/README.md
However, we may be able to get away with some smaller subset of bundles, e.g.:
plotly.js basic
and plotly.js geo
for a bit of a smaller overall download.