mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-22 07:29:08 +00:00
fix: add legacy plugin to support iOS 14
This commit is contained in:
@@ -51,7 +51,8 @@
|
|||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
"not dead",
|
"not dead",
|
||||||
"not op_mini all"
|
"not op_mini all",
|
||||||
|
"safari >= 14.1"
|
||||||
],
|
],
|
||||||
"development": [
|
"development": [
|
||||||
"last 1 chrome version",
|
"last 1 chrome version",
|
||||||
@@ -64,6 +65,7 @@
|
|||||||
"@types/qrcode": "^1.5.6",
|
"@types/qrcode": "^1.5.6",
|
||||||
"@types/react": "^19.1.12",
|
"@types/react": "^19.1.12",
|
||||||
"@types/react-dom": "^19.1.9",
|
"@types/react-dom": "^19.1.9",
|
||||||
|
"@vitejs/plugin-legacy": "^8.0.1",
|
||||||
"@vitejs/plugin-react": "5.2.0",
|
"@vitejs/plugin-react": "5.2.0",
|
||||||
"babel-plugin-react-compiler": "1.0.0",
|
"babel-plugin-react-compiler": "1.0.0",
|
||||||
"ontime-types": "workspace:*",
|
"ontime-types": "workspace:*",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||||
|
import legacy from '@vitejs/plugin-legacy';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import { compression } from 'vite-plugin-compression2';
|
import { compression } from 'vite-plugin-compression2';
|
||||||
@@ -21,6 +22,9 @@ export default defineConfig({
|
|||||||
'import.meta.env.IS_DOCKER': process.env.NODE_ENV === 'docker',
|
'import.meta.env.IS_DOCKER': process.env.NODE_ENV === 'docker',
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
legacy({
|
||||||
|
targets: ['safari >= 14.1'],
|
||||||
|
}),
|
||||||
react({
|
react({
|
||||||
babel: {
|
babel: {
|
||||||
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],
|
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],
|
||||||
|
|||||||
Generated
+1269
-51
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user