import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], build: { // MapLibre (~1 МБ) — в отдельный чанк, чтобы кешировался независимо от кода приложения chunkSizeWarningLimit: 1100, rolldownOptions: { output: { codeSplitting: { groups: [{ name: 'maplibre', test: /node_modules[\\/]maplibre-gl/ }], }, }, }, }, })