mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
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:
1 file changed
+1
-1
+1
-1
@@ -33,7 +33,7 @@ export default defineConfig(() => ({
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
"@": path.resolve(import.meta.dirname, "./src"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
Reference in new issue
Block a user