fix: add legacy plugin to support iOS 14

This commit is contained in:
Claude
2026-05-01 18:34:39 +00:00
committed by Carlos Valente
parent e50ab0150e
commit 562f00dc7e
3 changed files with 1276 additions and 52 deletions
+4
View File
@@ -1,6 +1,7 @@
import path from 'path';
import { sentryVitePlugin } from '@sentry/vite-plugin';
import legacy from '@vitejs/plugin-legacy';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { compression } from 'vite-plugin-compression2';
@@ -21,6 +22,9 @@ export default defineConfig({
'import.meta.env.IS_DOCKER': process.env.NODE_ENV === 'docker',
},
plugins: [
legacy({
targets: ['safari >= 14.1'],
}),
react({
babel: {
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],