refactor: target chrome 89

This commit is contained in:
Carlos Valente
2025-01-28 17:16:05 +01:00
parent fb1bbd6d5c
commit 805478f141
3 changed files with 1452 additions and 34 deletions
+2
View File
@@ -1,4 +1,5 @@
import { sentryVitePlugin } from '@sentry/vite-plugin';
import legacy from '@vitejs/plugin-legacy';
import react from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
@@ -32,6 +33,7 @@ export default defineConfig({
excludeReplayWorker: true,
},
}),
legacy({ targets: ['chrome >= 89'] }),
compression({
algorithm: 'brotliCompress',
exclude: /\.(html)$/, // Ontime cloud: Exclude HTML files from compression so we can change the base property at runtime