From 1ff7fd8e91e5a28ee55161d347a933957715059c Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Mon, 9 Oct 2023 18:05:19 +1100 Subject: [PATCH] Fix resolving issue for `src` when running on CI. --- vitest.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 9d3c612..401c243 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,8 +1,14 @@ import Vue from '@vitejs/plugin-vue'; +import path from 'path' import {defineConfig} from "vite"; export default defineConfig({ + resolve: { + alias: { + '@': path.resolve(__dirname, './src') + }, + }, plugins: [Vue()], // @ts-ignore test: {