Skip to content

Commit be8e96b

Browse files
committed
svelte-highlight fixes
1 parent 4b2a8e0 commit be8e96b

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

β€Žpnpm-lock.yamlβ€Ž

Lines changed: 18 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsrc/components/CodeBlock.svelteβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { HighlightAuto, HighlightSvelte } from 'svelte-highlight';
3-
import blackMetalBathory from 'svelte-highlight/src/styles/synth-midnight-terminal-dark';
3+
import blackMetalBathory from 'svelte-highlight/styles/synth-midnight-terminal-dark';
44
import { sketchExampleCode, type Language } from '../helpers/sketchExampleCode';
55
import { copyToClipboard } from '$helpers/clipboard';
66
import { toast } from '@zerodevx/svelte-toast';

β€Žsvelte.config.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config = {
1515
},
1616
vite: {
1717
optimizeDeps: {
18-
include: ['highlight.js/lib/core'],
18+
include: ['highlight.js', 'highlight.js/lib/core'],
1919
},
2020
resolve: {
2121
alias: {

0 commit comments

Comments
Β (0)