We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a22d02 commit 8c223e1Copy full SHA for 8c223e1
1 file changed
vite.config.ts
@@ -1,8 +1,12 @@
1
-import { defineConfig } from 'vite'
2
-import react from '@vitejs/plugin-react'
+import { defineConfig } from "vite"
+import react from "@vitejs/plugin-react"
3
import path from "path"
4
+import { fileURLToPath } from "url"
5
+
6
+// ESM-compatible __dirname
7
+const __filename = fileURLToPath(import.meta.url)
8
+const __dirname = path.dirname(__filename)
9
-// https://vite.dev/config/
10
export default defineConfig({
11
plugins: [react()],
12
resolve: {
0 commit comments