From bcc2d48bf6bd048b90e34caf9db5c1aee382d4c1 Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 20 Aug 2024 19:28:35 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Update=20svelte.config=20t?= =?UTF-8?q?o=20use=20``makeSingletonHighlighter``=20for=20shiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 16dc685..7d34940 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -3,7 +3,9 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; // Extensions: import { mdsvex, escapeSvelte } from 'mdsvex'; -import { getHighlighter } from 'shiki'; +import { createHighlighter, makeSingletonHighlighter } from 'shiki'; + +const getHighlighter = makeSingletonHighlighter(createHighlighter); // Markdown config: /** @type {import('mdsvex').MdsvexOptions} */