From 3f581ae1b02d85ef0d6641fa54893e4425a6bfa0 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 26 Sep 2025 14:32:16 -0700 Subject: [PATCH] esm safe path --- client/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/vite.config.ts b/client/vite.config.ts index a99c1a254..4c60ce2a4 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -2,6 +2,9 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import svgr from "vite-plugin-svgr"; import path from "path"; +import { fileURLToPath } from "url"; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); export default defineConfig(({}) => { let version = "3.2.0";