From 1202652e9318b12bcf87c2b0f25a44b3b9cfded4 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Mon, 29 Dec 2025 12:10:47 -0600 Subject: [PATCH] Add compiler options in svelte.config.js to manage runes for external dependencies --- svelte.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 46f138c..2b19c68 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,6 +4,16 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: vitePreprocess(), + compilerOptions: (id) => { + if (id && id.includes('node_modules')) { + return { + runes: false, // Disable runes for external dependencies that might not support it yet (lucide-svelte) + }; + } + return { + runes: true, + }; + }, kit: { adapter: adapter({