From 76b453c7ff8abbc5056b2e1f0952bd9dc12470b0 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 21 Mar 2026 16:08:40 +0100 Subject: [PATCH] fix: restore iOS 12 support (#28436) --- .browserslistrc | 2 ++ vite.config.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .browserslistrc diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 000000000..57c5f4be2 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,2 @@ +defaults +iOS >= 12 diff --git a/vite.config.ts b/vite.config.ts index c92fbc243..bcb6cd833 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,8 @@ import { defineConfig } from "vite"; import vuePlugin from "@vitejs/plugin-vue"; import legacy from "@vitejs/plugin-legacy"; +import { browserslistToTargets } from "lightningcss"; +import browserslist from "browserslist"; import { visualizer } from "rollup-plugin-visualizer"; import path from "path"; @@ -17,6 +19,7 @@ export default defineConfig({ transformer: "lightningcss", lightningcss: { drafts: { customMedia: true }, + targets: browserslistToTargets(browserslist()), }, }, build: { @@ -36,7 +39,6 @@ export default defineConfig({ }, plugins: [ legacy({ - targets: ["defaults", "iOS >= 14"], modernPolyfills: ["es.promise.all-settled"], }), vuePlugin({