mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 15:07:41 +01:00
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||
|
|
import { defineConfig } from 'vitest/config';
|
||
|
|
|
||
|
|
// @ts-expect-error - type mismatch
|
||
|
|
export default defineConfig(({ mode }) => ({
|
||
|
|
plugins: [
|
||
|
|
svelte({
|
||
|
|
compilerOptions: { hmr: false },
|
||
|
|
}),
|
||
|
|
],
|
||
|
|
resolve: {
|
||
|
|
conditions: mode === 'test' ? ['browser'] : [],
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
globals: true,
|
||
|
|
environment: 'jsdom',
|
||
|
|
setupFiles: './tests/setupVitest.ts',
|
||
|
|
},
|
||
|
|
}));
|