aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwxiaoguang2022-01-24 21:40:51 +0800
committerGitHub2022-01-24 21:40:51 +0800
commitf7f4129f5274b7f2f78fc866bc4484999c49af46 (patch)
tree941044882aade36ce292ea5cf9d76bc5eb1314ec
parent21838225abe62686d593fb5adc0025d36dc1cc94 (diff)
Fix mermaid import (it uses ESModule now) (#18382)
-rw-r--r--web_src/js/markup/mermaid.js2
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: {