fix(build): add @/ path alias to Vite config and fix tsconfig composite setting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
openclaw 2026-03-23 17:21:26 +00:00
parent ce4f474472
commit 75e053c454
3 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@ __pycache__/
*.pyc *.pyc
*.pyo *.pyo
.venv/ .venv/
node_modules/
dist/

View File

@ -5,7 +5,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"strict": true, "strict": true,
"noEmit": true, "composite": true,
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["vite.config.ts"] "include": ["vite.config.ts"]

View File

@ -1,8 +1,14 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: { server: {
proxy: { proxy: {
'/api': { '/api': {