import type { UserConfig } from 'vite';

async function getCommonConfig(): Promise<UserConfig> {
  return {
    build: {
      chunkSizeWarningLimit: 2000,
      reportCompressedSize: false,
      sourcemap: false,
    },
    optimizeDeps: {
      exclude: ['video.js', '@videojs-player/vue'],
    },
  };
}

export { getCommonConfig };
