mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Resolve import paths for src folder and type bindings
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"@app/*": ["./src/*"],
|
||||
"@bindings/*": ["./src-tauri/bindings/*"],
|
||||
"@public/*": ["./public/*"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { defineConfig } from "vite";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import path from "node:path";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -16,4 +17,11 @@ export default defineConfig({
|
||||
ignored: ["**/src-tauri/**"],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@app": path.resolve("./src"),
|
||||
"@bindings": path.resolve("./src-tauri/bindings/"),
|
||||
"@public": path.resolve("./public"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user