From f7f4129f5274b7f2f78fc866bc4484999c49af46 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 24 Jan 2022 21:40:51 +0800 Subject: [PATCH] Fix mermaid import (it uses ESModule now) (#18382) --- web_src/js/markup/mermaid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/markup/mermaid.js b/web_src/js/markup/mermaid.js index d0aefd1aff..ca7c78c928 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: {