From efb98567102a8e88a3d75615bdc050ec1b1a06ba Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 29 Nov 2024 09:56:14 +0900 Subject: [PATCH] fix --- .vitepress/pages/Playground.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vitepress/pages/Playground.vue b/.vitepress/pages/Playground.vue index 887509d..f718016 100644 --- a/.vitepress/pages/Playground.vue +++ b/.vitepress/pages/Playground.vue @@ -71,9 +71,11 @@ import { ref, computed, useTemplateRef, nextTick, onMounted, watch, onUnmounted import { createHighlighterCore } from 'shiki/core'; import type { HighlighterCore, LanguageRegistration } from 'shiki/core'; import { createOnigurumaEngine } from 'shiki/engine/oniguruma'; -import { compressToEncodedURIComponent, decompressFromEncodedURIComponent } from 'lz-string'; +import lzString from 'lz-string'; import { useThrottle } from '../scripts/throttle'; +const { compressToEncodedURIComponent, decompressFromEncodedURIComponent } = lzString; + const fizzbuzz = `for (let i, 100) { \t<: if (i % 15 == 0) "FizzBuzz" \t\telif (i % 3 == 0) "Fizz"