mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.35k stars 227 forks source link

build: remove dependency on mermaid-mindmap pkg #535

Closed aloisklink closed 1 year ago

aloisklink commented 1 year ago

:bookmark_tabs: Summary

Since Mermaid v9.4.0, the @mermaid-js/mermaid-mindmap package is no longer needed, since it has been integrated as part of the main mermaid package.

See: https://mermaid.js.org/syntax/mindmap.html#integrating-with-your-library-website See: https://github.com/mermaid-js/mermaid/commit/71e4f1152b96fe716b156f1ab687fd01e724715b

Removing this package decreases the size of mermaid-cli's dist/index.html by about 8%!

Before

dist/index.html                          5,241.86 kB │ gzip: 2,148.61 kB

After

dist/index.html                          4,841.83 kB │ gzip: 2,020.65 kB

:straight_ruler: Design Decisions

N/A

:clipboard: Tasks

Make sure you