mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-27 13:27:52 +00:00
24 lines
624 B
TypeScript
24 lines
624 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
// Import path module for resolving file paths
|
|
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
|
|
import wasm from 'vite-plugin-wasm';
|
|
import topLevelAwait from 'vite-plugin-top-level-await';
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test/setup.ts']
|
|
},
|
|
assetsInclude: ['**/*.wasm'],
|
|
plugins: [react(), wasm(), topLevelAwait()],
|
|
optimizeDeps: {
|
|
esbuildOptions: {
|
|
plugins: [fixReactVirtualized],
|
|
}
|
|
}
|
|
});
|