mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 15:27:42 -04:00 
			
		
		
		
	Fix mermaid import (it uses ESModule now) (#18382)
This commit is contained in:
		| @@ -11,7 +11,7 @@ function displayError(el, err) { | |||||||
| export async function renderMermaid(els) { | export async function renderMermaid(els) { | ||||||
|   if (!els || !els.length) return; |   if (!els || !els.length) return; | ||||||
|  |  | ||||||
|   const mermaid = await import(/* webpackChunkName: "mermaid" */'mermaid'); |   const {default: mermaid} = await import(/* webpackChunkName: "mermaid" */'mermaid'); | ||||||
|  |  | ||||||
|   mermaid.initialize({ |   mermaid.initialize({ | ||||||
|     mermaid: { |     mermaid: { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user