From bfc6d77fb97b7328010be6b0c4ea85aa54731082 Mon Sep 17 00:00:00 2001
From: Emmanuel Raviart <emmanuel@raviart.com>
Date: Mon, 16 Sep 2024 10:56:11 +0200
Subject: [PATCH] Use defineConfig

---
 vite.config.ts | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index fac2a6274..4d2b8fa7c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,11 +1,11 @@
 import { sveltekit } from "@sveltejs/kit/vite"
 import yaml from "js-yaml"
-import type { UserConfig } from "vite"
+import { defineConfig } from "vite"
 
 // import yamlPlugin from "@rollup/plugin-yaml"
 import yamlPlugin from "./plugin-yaml-patched"
 
-const config: UserConfig = {
+export default defineConfig({
   build: {
     // Increase size of chunks to 5 MB, to be able to import
     // JSON files extracted from OpenFisca country package.
@@ -25,6 +25,4 @@ const config: UserConfig = {
   ssr: {
     noExternal: ["d3-scale"],
   },
-}
-
-export default config
+})
-- 
GitLab