Use import.meta.dirname in vite.config.ts

Silences the Vite warning about `__dirname` being unsupported by
`configLoader: 'native'`, which is planned to become the default.
This commit is contained in:
Alex Gleason committed 2026-08-29 16:33:44 -05:00
1 parent 5ee25d2e6a
commit f8cda28f7c
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ export default defineConfig(() => ({
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@": path.resolve(import.meta.dirname, "./src"),
},
},
}));