mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	Fix elk import
This commit is contained in:
		@@ -766,7 +766,7 @@ const insertChildren = (nodeArray, parentLookupDb) => {
 | 
			
		||||
 | 
			
		||||
export const draw = async function (text, id, _version, diagObj) {
 | 
			
		||||
  if (!elk) {
 | 
			
		||||
    const ELK = await import('elkjs/lib/elk.bundled.js');
 | 
			
		||||
    const ELK = (await import('elkjs/lib/elk.bundled.js')).default;
 | 
			
		||||
    elk = new ELK();
 | 
			
		||||
  }
 | 
			
		||||
  // Add temporary render element
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user