diff --git a/webview/vite.config.ts b/webview/vite.config.ts index 108a7bbf6..05cfb44b9 100644 --- a/webview/vite.config.ts +++ b/webview/vite.config.ts @@ -1,5 +1,6 @@ import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; +import path from 'path'; export default defineConfig({ base: './', @@ -9,5 +10,12 @@ export default defineConfig({ minify: 'esbuild', reportCompressedSize: false, }, + resolve: { + alias: { + '@Client': path.resolve(__dirname, '../src/main/client'), + '@Server': path.resolve(__dirname, '../src/main/server'), + '@Shared': path.resolve(__dirname, '../src/main/shared'), + }, + }, plugins: [vue()], });