All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
22 lines
490 B
JavaScript
22 lines
490 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
minify: 'esbuild',
|
|
rollupOptions: {
|
|
treeshake: false,
|
|
onwarn(warning, warn) {
|
|
// Suppress certain warnings
|
|
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') return;
|
|
warn(warning);
|
|
},
|
|
},
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
},
|
|
},
|
|
});
|