From 3e3de72093a256fd5a6efd9ef44549f67d737d2b Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 7 Oct 2022 14:51:37 +0800 Subject: [PATCH] fix: dynamic import --- cypress/platform/knsv2.html | 2 +- cypress/platform/viewer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html index 91a3bbaad..ca2333cd5 100644 --- a/cypress/platform/knsv2.html +++ b/cypress/platform/knsv2.html @@ -100,7 +100,7 @@ mindmap logLevel: 0, // basePath: './packages/', // themeVariables: { darkMode: true }, - extraDiagrams: ['./mermaid-mindmap-detector.core.mjs'], + extraDiagrams: ['./mermaid-mindmap-detector.esm.mjs'], // extraDiagrams: ['../../mermaid-mindmap/registry.ts'], }); function callback() { diff --git a/cypress/platform/viewer.js b/cypress/platform/viewer.js index ff70e0abe..ce1ccc94f 100644 --- a/cypress/platform/viewer.js +++ b/cypress/platform/viewer.js @@ -36,7 +36,7 @@ const contentLoaded = function () { document.getElementsByTagName('body')[0].appendChild(div); } - graphObj.mermaid.extraDiagrams = ['/mermaid-mindmap-detector.core.mjs']; + graphObj.mermaid.extraDiagrams = ['/mermaid-mindmap-detector.esm.mjs']; mermaid2.initialize(graphObj.mermaid); mermaid2.init();