fix vitest error

This commit is contained in:
Luna D. 2024-12-17 18:08:21 +01:00
parent 9f081ac8d6
commit 6b69971a5c
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -1,13 +1,12 @@
/// <reference types="vitest" />
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';
import autoprefixer from 'autoprefixer'; import autoprefixer from 'autoprefixer';
import postcssMixins from 'postcss-mixins'; import postcssMixins from 'postcss-mixins';
import postcssSimpleVars from 'postcss-simple-vars'; import postcssSimpleVars from 'postcss-simple-vars';
import postcssRelativeColor from '@csstools/postcss-relative-color-syntax'; 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 isDev = command !== 'build' && mode !== 'test';
const targets = new Map(); const targets = new Map();