@uniweb/kit 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -104,12 +104,16 @@ async function loadShiki() {
|
|
|
104
104
|
|
|
105
105
|
shikiLoadPromise = (async () => {
|
|
106
106
|
try {
|
|
107
|
-
|
|
107
|
+
// Import Shiki and the css-variables theme (not bundled by default in Shiki 3.x)
|
|
108
|
+
const [{ createHighlighter }, cssVariablesTheme] = await Promise.all([
|
|
109
|
+
import('shiki'),
|
|
110
|
+
import('shiki/themes/css-variables.mjs').then(m => m.default)
|
|
111
|
+
])
|
|
108
112
|
|
|
109
113
|
// Create highlighter with CSS variables theme
|
|
110
114
|
// Only load common languages initially, others load on-demand
|
|
111
115
|
shikiInstance = await createHighlighter({
|
|
112
|
-
themes: [
|
|
116
|
+
themes: [cssVariablesTheme],
|
|
113
117
|
langs: [
|
|
114
118
|
'javascript',
|
|
115
119
|
'typescript',
|