From b947931d3bb6e90fbdfc10f1ea11312cfa68acbd Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 24 Nov 2022 12:58:25 +0800 Subject: [PATCH] fix(shiki): do not load languages initially --- composables/shiki.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composables/shiki.ts b/composables/shiki.ts index 975f84ca..09426ed4 100644 --- a/composables/shiki.ts +++ b/composables/shiki.ts @@ -15,6 +15,9 @@ export function highlightCode(code: string, lang: Lang) { 'vitesse-dark', 'vitesse-light', ], + langs: [ + lang, + ], }) }) }