Skip to content

Commit f7f4129

Browse files
authored
Fix mermaid import (it uses ESModule now) (#18382)
1 parent 2183822 commit f7f4129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/markup/mermaid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function displayError(el, err) {
1111
export async function renderMermaid(els) {
1212
if (!els || !els.length) return;
1313

14-
const mermaid = await import(/* webpackChunkName: "mermaid" */'mermaid');
14+
const {default: mermaid} = await import(/* webpackChunkName: "mermaid" */'mermaid');
1515

1616
mermaid.initialize({
1717
mermaid: {

0 commit comments

Comments
 (0)