@@ -4,7 +4,7 @@ import type {
44 DynamicImportThemeRegistration ,
55 HighlighterGeneric ,
66} from "@shikijs/types" ;
7- import { createdBundledHighlighter } from "@shikijs/core" ;
7+ import { createBundledHighlighter } from "@shikijs/core" ;
88import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript" ;
99
1010type BundledLanguage = "typescript" | "ts" | "javascript" | "js" | "vue" ;
@@ -77,8 +77,7 @@ const bundledLanguages = {
7777 rust : ( ) => import ( "@shikijs/langs-precompiled/rust" ) ,
7878 rs : ( ) => import ( "@shikijs/langs-precompiled/rust" ) ,
7979 scala : ( ) => import ( "@shikijs/langs-precompiled/scala" ) ,
80- // Swift does not support pre-compilation right now
81- swift : ( ) => import ( "@shikijs/langs/swift" ) ,
80+ swift : ( ) => import ( "@shikijs/langs-precompiled/swift" ) ,
8281 kotlin : ( ) => import ( "@shikijs/langs-precompiled/kotlin" ) ,
8382 kt : ( ) => import ( "@shikijs/langs-precompiled/kotlin" ) ,
8483 kts : ( ) => import ( "@shikijs/langs-precompiled/kotlin" ) ,
@@ -91,7 +90,7 @@ const bundledThemes = {
9190 "github-light" : ( ) => import ( "@shikijs/themes/github-light" ) ,
9291} as Record < BundledTheme , DynamicImportThemeRegistration > ;
9392
94- const createHighlighter = /* @__PURE__ */ createdBundledHighlighter <
93+ const createHighlighter = /* @__PURE__ */ createBundledHighlighter <
9594 BundledLanguage ,
9695 BundledTheme
9796> ( {
0 commit comments