From 9e1145df813a49bcf603f5e1830018eac8c4864d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?=
<67428053+kakkokari-gtyih@users.noreply.github.com>
Date: Fri, 2 Feb 2024 15:05:18 +0900
Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20shiki=20v1=E3=81=AB?=
=?UTF-8?q?=E7=A7=BB=E8=A1=8C=20(#13138)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* enhance(frontend): shiki v1に移行
* optimize chunks, エラーを握りつぶす
* wasmを分離
* バンドルサイズの警告の最小値を650kBに引き上げ
* optimize
---
packages/frontend/package.json | 2 +-
.../frontend/src/components/MkCode.core.vue | 21 ++++++-------
.../frontend/src/scripts/code-highlighter.ts | 28 +++++++++--------
pnpm-lock.yaml | 30 +++++++------------
scripts/build-assets.mjs | 8 -----
5 files changed, 37 insertions(+), 52 deletions(-)
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index e7193a27a..d614f7588 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -60,7 +60,7 @@
"rollup": "4.9.6",
"sanitize-html": "2.11.0",
"sass": "1.70.0",
- "shiki": "0.14.7",
+ "shiki": "1.0.0-beta.3",
"strict-event-emitter-types": "2.0.0",
"textarea-caret": "3.1.0",
"three": "0.160.1",
diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue
index 8fca3bb15..c655ff416 100644
--- a/packages/frontend/src/components/MkCode.core.vue
+++ b/packages/frontend/src/components/MkCode.core.vue
@@ -5,13 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
-