From 6b69971a5ce4154b0a3f6249732e8d16ff579892 Mon Sep 17 00:00:00 2001 From: "Luna D." Date: Tue, 17 Dec 2024 18:08:21 +0100 Subject: [PATCH] fix vitest error --- assets/vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/vite.config.ts b/assets/vite.config.ts index cb688c45..86821600 100644 --- a/assets/vite.config.ts +++ b/assets/vite.config.ts @@ -1,13 +1,12 @@ -/// import fs from 'fs'; import path from 'path'; import autoprefixer from 'autoprefixer'; import postcssMixins from 'postcss-mixins'; import postcssSimpleVars from 'postcss-simple-vars'; import postcssRelativeColor from '@csstools/postcss-relative-color-syntax'; -import { defineConfig, UserConfig, ConfigEnv } from 'vite'; +import { defineConfig, ViteUserConfig, ConfigEnv } from 'vitest/config'; -export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => { +export default defineConfig(({ command, mode }: ConfigEnv): ViteUserConfig => { const isDev = command !== 'build' && mode !== 'test'; const targets = new Map();