summaryrefslogtreecommitdiffstats
path: root/web_src/js/markup
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-10-19 09:23:58 +0200
committerGitHub <noreply@github.com>2021-10-19 15:23:58 +0800
commiteaf493be5d01332966f983f6d83ad515cfdec7bf (patch)
tree5aea624ec91246bf83cb167a41ed7c522f0db26f /web_src/js/markup
parente2a59c57fc1dcaecddc8d8dbf27d551c92dda101 (diff)
downloadgitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.tar.gz
gitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.zip
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 <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/js/markup')
-rw-r--r--web_src/js/markup/mermaid.js2
1 files changed, 1 insertions, 1 deletions
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: {