1 import react from '@vitejs/plugin-react-swc';
2 import path from 'path';
3 import wasm from 'vite-plugin-wasm';
4 import { defineConfig } from 'vitest/config';
6 export default defineConfig({
7 plugins: [react(), wasm()],
17 environment: 'happy-dom',
19 threads: { singleThread: true },
22 setupFiles: './vitest.setup.ts',
27 'proton-wallet': path.resolve(__dirname, './src/app'),
29 conditions: ['browser'],