Files
onenote-tools/vite.config.ts

20 lines
524 B
TypeScript

/// <reference types="vitest/config" />
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({
base: './',
plugins: [react()],
build: {
// Baseline browsers support modulepreload natively. Avoid shipping Vite's
// injected runtime polyfill (and an otherwise unnecessary runtime notice).
modulePreload: { polyfill: false },
},
test: {
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: true,
restoreMocks: true,
},
});