From 16dbdbdad1d7569ba38c4d08723ccd855cb47773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 30 Sep 2026 10:31:32 +0200 Subject: [PATCH] chore(config): add fileURLToPath import for path resolution This change introduces the fileURLToPath import to enhance path handling in the configuration files. --- vite.config.ts | 3 +++ vitest.config.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index b8a63fb3..de0310d8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,5 @@ import path from "node:path"; +import { fileURLToPath } from "node:url"; import basicSsl from "@vitejs/plugin-basic-ssl"; import vue from "@vitejs/plugin-vue"; @@ -16,6 +17,8 @@ const isCI = !!process.env.CI; const debugMode = ["local", "development"].includes(process.env.NODE_ENV ?? ""); const browserTargets = ["es2019", "edge92", "firefox88", "chrome92", "safari15"]; +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + export default defineConfig({ build: { chunkSizeWarningLimit: 1500, diff --git a/vitest.config.ts b/vitest.config.ts index 6609faea..ceeb4484 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,7 +1,10 @@ import path from "node:path"; +import { fileURLToPath } from "node:url"; import { defineConfig } from "vitest/config"; +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + export default defineConfig({ resolve: { alias: {