chore(config): add fileURLToPath import for path resolution

This change introduces the fileURLToPath import to enhance path handling in the configuration files.
This commit is contained in:
Jérémy Munsch 2026-09-30 10:31:32 +02:00
parent 46b5413f07
commit 16dbdbdad1
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91
2 changed files with 6 additions and 0 deletions

View file

@ -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,

View file

@ -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: {