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

Clean up dependencies, use plotly reduced distribution #75

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

WardBrian
Copy link
Collaborator

This makes the change discussed here to reduce the size of the plotly.js bundle by using a distribution with fewer features. For now I chose cartesian, which includes bar, box, contour, heatmap, histogram, histogram2d, histogram2dcontour, image, pie, scatter, scatterternary and violin.

This reduces the size of the bundle from ~3.7mb to ~1.3mb. This is still lazy-loaded, just now it will lazily load faster.

I also removed some currently unused dependencies.

@WardBrian WardBrian added the dependencies Pull requests that update a dependency file label Jun 17, 2024
@WardBrian WardBrian requested a review from jsoules June 17, 2024 16:29
Copy link
Collaborator

@jsoules jsoules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all seems pretty straightforward to me...

@WardBrian WardBrian merged commit 61f2688 into main Jun 18, 2024
1 check passed
@WardBrian WardBrian deleted the dependency-cleanup branch June 18, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants