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
+3 -1
View File
@@ -51,7 +51,8 @@
"production": [
">0.2%",
"not dead",
"not op_mini all"
"not op_mini all",
"safari >= 14.1"
],
"development": [
"last 1 chrome version",
@@ -64,6 +65,7 @@
"@types/qrcode": "^1.5.6",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-legacy": "^8.0.1",
"@vitejs/plugin-react": "5.2.0",
"babel-plugin-react-compiler": "1.0.0",
"ontime-types": "workspace:*",
+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]],
+1269 -51
View File
File diff suppressed because it is too large Load Diff