diff options
author | wxiaoguang | 2022-01-24 21:40:51 +0800 |
---|---|---|
committer | GitHub | 2022-01-24 21:40:51 +0800 |
commit | f7f4129f5274b7f2f78fc866bc4484999c49af46 (patch) | |
tree | 941044882aade36ce292ea5cf9d76bc5eb1314ec | |
parent | 21838225abe62686d593fb5adc0025d36dc1cc94 (diff) |
Fix mermaid import (it uses ESModule now) (#18382)
-rw-r--r-- | web_src/js/markup/mermaid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/markup/mermaid.js b/web_src/js/markup/mermaid.js index d0aefd1af..ca7c78c92 100644 --- a/web_src/js/markup/mermaid.js +++ b/web_src/js/markup/mermaid.js @@ -11,7 +11,7 @@ function displayError(el, err) { export async function renderMermaid(els) { if (!els || !els.length) return; - const mermaid = await import(/* webpackChunkName: "mermaid" */'mermaid'); + const {default: mermaid} = await import(/* webpackChunkName: "mermaid" */'mermaid'); mermaid.initialize({ mermaid: { |