aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/shiki.bundle.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-18 02:03:51 +0900
committernsfisis <nsfisis@gmail.com>2025-08-18 02:03:51 +0900
commit510623ee1b7158578dd6f14adfb2e5bc2af67832 (patch)
tree9e18e9ff98563944b7d02ab2a99efd6f54c54b39 /frontend/app/shiki.bundle.ts
parent714a64fb30eafcb8f9e4fa340c77cc322da71f3f (diff)
downloadiosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.tar.gz
iosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.tar.zst
iosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.zip
feat(frontend): bundle swift highlight
Diffstat (limited to 'frontend/app/shiki.bundle.ts')
-rw-r--r--frontend/app/shiki.bundle.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/app/shiki.bundle.ts b/frontend/app/shiki.bundle.ts
index 1d03de3..22b0ce2 100644
--- a/frontend/app/shiki.bundle.ts
+++ b/frontend/app/shiki.bundle.ts
@@ -10,12 +10,13 @@ import {
} from '@shikijs/core'
import { createJavaScriptRegexEngine } from '@shikijs/engine-javascript'
-type BundledLanguage = 'php'
+type BundledLanguage = 'php' | 'swift'
type BundledTheme = 'github-light'
type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme>
const bundledLanguages = {
php: () => import('@shikijs/langs/php'),
+ swift: () => import('@shikijs/langs/swift'),
} as Record<BundledLanguage, DynamicImportLanguageRegistration>
const bundledThemes = {