- Standardized import statements and removed unnecessary line breaks for better readability in various components. - Enhanced error handling and logging in the useElectronPrinter hook. - Updated sample data formatting in AgGridShowcase for improved clarity. - Refactored JSX elements for consistent indentation and structure in LandingSample, AuthPage, and EventsPage components. - Consolidated and simplified conditional rendering logic in several components. These changes aim to enhance code maintainability and readability throughout the project.
26 lines
601 B
TypeScript
26 lines
601 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true, // Fail if 5173 is in use. Electron NEEDS this exact port.
|
|
},
|
|
define: {
|
|
// Crucial for PouchDB to not crash in the browser
|
|
global: 'window',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// Force Vite to use the installed npm package for 'events'
|
|
events: 'events',
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
globals: false,
|
|
},
|
|
});
|