We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150e2d4 commit ada4d71Copy full SHA for ada4d71
src/runtime/highlighter/shiki.ts
@@ -99,7 +99,7 @@ export function createShikiHighlighter({
99
codeToHastOptions.grammarContextCode = '<template>'
100
}
101
102
- const themesObject = typeof theme === 'string' ? { default: theme } : (theme || {})
+ const themesObject = { ...(typeof theme === 'string' ? { default: theme } : (theme || {})) }
103
const loadedThemes = shiki.getLoadedThemes()
104
const loadedLanguages = shiki.getLoadedLanguages()
105
0 commit comments