From 1ee49a8b4a6978f704b399fb79c7a61e9974e8a4 Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Sun, 10 Sep 2023 18:14:54 -0400 Subject: [PATCH] Build config fixes --- svelte.config.js | 4 +++- vite.config.ts | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 6d8ba50..14ab7a3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -5,7 +5,9 @@ import { vitePreprocess } from '@sveltejs/kit/vite'; const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter(), + adapter: adapter({ + fallback: 'index.html', + }), alias: { $icon: 'src/assets/fontawesome/light/*', }, diff --git a/vite.config.ts b/vite.config.ts index da90077..d715b0c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,9 @@ export default defineConfig({ }, }, ], + build: { + target: 'esnext', + }, optimizeDeps: { exclude: ['sqlocal', 'bytemd'], },