Update Vite aliases in napcat-schema config

Expanded the alias configuration in vite.config.ts to include specific paths for napcat-onebot, napcat-common, napcat-schema, and napcat-core. This improves module resolution and import clarity within the project.
This commit is contained in:
手瓜一十雪 2026-01-30 14:41:46 +08:00
parent e5108c0427
commit b0cc7b6ee5

View File

@ -15,7 +15,11 @@ export default defineConfig({
resolve: { resolve: {
conditions: ['node', 'default'], conditions: ['node', 'default'],
alias: { alias: {
'@/': resolve(__dirname, '../'), '@/napcat-onebot': resolve(__dirname, '../napcat-onebot'),
'@/napcat-common': resolve(__dirname, '../napcat-common'),
'@/napcat-schema': resolve(__dirname, './src'),
'@/napcat-core': resolve(__dirname, '../napcat-core'),
'@/napcat-webui-backend': resolve(__dirname, '../napcat-webui-backend'),
}, },
}, },
plugins: [ plugins: [