Skip to content

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

Merged
tbo47 merged 1 commit into
tbo47:mainfrom
sidharthv96:main
Nov 20, 2022
Merged

fix: lodash-es tree-shakeable import.#7
tbo47 merged 1 commit into
tbo47:mainfrom
sidharthv96:main

Conversation

@sidharthv96
Copy link
Copy Markdown
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.

2 participants