mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-03 11:04:06 +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