mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 03:17:52 +01:00
Fix mermaid import (it uses ESModule now) (#18382)
This commit is contained in:
parent
21838225ab
commit
f7f4129f52
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user