From 43caddc8bc45f44f4fde2d1291449c66b43b43ec Mon Sep 17 00:00:00 2001 From: wuxh Date: Wed, 10 Jan 2024 14:50:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=20demo=20=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vitest.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vitest.config.ts b/vitest.config.ts index 4d62d88..90aacbf 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,3 +1,4 @@ +import { resolve } from 'path'; import { defineConfig } from 'vitest/config'; import { name } from './package.json'; @@ -8,8 +9,7 @@ export default defineConfig({ globals: true, css: true, alias: { - '@': './src', - [name]: './src', + [name]: resolve(__dirname, './src'), }, coverage: { reporter: ['text', 'text-summary', 'json', 'lcov'],