🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Plotly js size is huge (>3MB) in production build

Dear Team ,

I am using Plotly js inside my vue project(javascript) , when I build the files for production I would plotly js file contributing more than 3MB in the final production build copy , is there any way to reduce the size , is there any Tree Shaking mechanism in the plotly , please guide , it is reducing my application’s performance.

Have you tried partial bundles?

I am building a simple landing page which includes a 3d scatterplot graphic from plotly, nevertheless the minified library weights 3MB.