Replaces `||` with `??` for more precise default value assignment in select components. Also updates Vite config to set `base` to `/` and disable sourcemaps during build.
18 lines
307 B
TypeScript
18 lines
307 B
TypeScript
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
define: {
|
|
'process.env': process.env
|
|
},
|
|
base: '/',
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
sourcemap: false
|
|
}
|
|
});
|