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

fix: lodash-es tree-shakeable import. #7

Merged
merged 1 commit into from
Nov 20, 2022
Merged

Conversation

sidharthv96
Copy link
Collaborator

@sidharthv96 sidharthv96 commented Nov 20, 2022

This enables vite to tree-shake lodash and reduce bundle size.

Bundle Initial After dagre-es After import fix Change % Change
mermaid.js 2055.7 1839.41 1694.35 -361.35 -17.58
mermaid.core.mjs 1080.32 1313.80 1178.73 +98.41 +9.11

@tbo47 tbo47 merged commit 297c5dd into tbo47:main Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants