Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

build(config): add @ path alias

hairyf574aff17b050
diff --git a/tsconfig.json b/tsconfig.json
index a1db3dc3..82e9a6a7 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,10 +4,14 @@
"jsx": "react-jsx",
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"useDefineForClassFields": true,
+ "baseUrl": ".",
"module": "ESNext",
/* Bundler mode */
"moduleResolution": "bundler",
+ "paths": {
+ "@/*": ["src/*"]
+ },
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
diff --git a/vite.config.ts b/vite.config.ts
index a9fb55a9..bd3979bf 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -9,6 +9,12 @@ const host = process.env.TAURI_DEV_HOST
export default defineConfig(async () => ({
plugins: [react(), tailwindcss()],
+ resolve: {
+ alias: {
+ '@': '/src',
+ },
+ },
+
// Vite options tailored for Tauri development.
// 1. prevent vite from obscuring rust errors
clearScreen: false,