From eaf493be5d01332966f983f6d83ad515cfdec7bf Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 19 Oct 2021 09:23:58 +0200 Subject: Update JS dependencies (#17357) * Update JS dependencies - Upgrade to eslint 8 and add new plugin rules - Adapt to various API changes - Rebuild SVGs * fix webpack warning on license * order options alphabetically Co-authored-by: Lunny Xiao --- web_src/js/markup/mermaid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web_src/js/markup') diff --git a/web_src/js/markup/mermaid.js b/web_src/js/markup/mermaid.js index a5bd0e235c..0319cbb6f0 100644 --- a/web_src/js/markup/mermaid.js +++ b/web_src/js/markup/mermaid.js @@ -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: { -- cgit v1.2.3