Skip to content

Commit

Permalink
Fix mermaid import (it uses ESModule now) (#18382)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jan 24, 2022
1 parent 2183822 commit f7f4129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/markup/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f7f4129

Please sign in to comment.