From d3725b9595a9daba64ee45999abb1e9059bb2af5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 11 Sep 2025 03:54:56 -0700 Subject: [PATCH] Enable SVG loading --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 7760128f..236d3d29 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,15 @@ import { paraglideVitePlugin } from '@inlang/paraglide-js' import { sveltekit } from '@sveltejs/kit/vite' import { defineConfig } from 'vite' +import { fileURLToPath, URL } from 'node:url' export default defineConfig({ + resolve: { + alias: { + $src: fileURLToPath(new URL('./src', import.meta.url)) + } + }, + assetsInclude: ['**/*.svg'], plugins: [ sveltekit(), paraglideVitePlugin({