Skip to content

Commit

Permalink
perf: skip bunding Mermaid ZenUML
Browse files Browse the repository at this point in the history
Instead of bundling the `@mermaid-js/mermaid-zenuml` package ourselves,
we can let the user install their own version of it.
  • Loading branch information
aloisklink authored and MindaugasLaganeckas committed Nov 12, 2024
1 parent 202d0b5 commit e0ef9f7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 163 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
import "@fortawesome/fontawesome-free/css/fontawesome.css"
import "katex/dist/katex.css"

import zenuml from "@mermaid-js/mermaid-zenuml"
import elkLayouts from "@mermaid-js/layout-elk"

// expose zenuml to the global scope so that puppeteer can see it
globalThis.zenuml = zenuml
// expose elkLayouts to the global scope so that puppeteer can see it
globalThis.elkLayouts = elkLayouts
</script>
</body>
Expand Down
Loading

0 comments on commit e0ef9f7

Please sign in to comment.