Skip to content

Commit

Permalink
set modern targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Sep 25, 2024
1 parent 680db63 commit 1323a4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
>= 0.5%
last 2 major versions
not dead
Chrome >= 60
Firefox >= 60
Chrome >= 90
Firefox >= 91
Firefox ESR
iOS >= 12
Safari >= 12
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export default defineConfig({
strictMessage: false
}),
// support older browsers
legacy()
legacy({
modernTargets: 'iOS >= 12, Safari >= 12'
})
],
resolve: {
alias: {
Expand Down

0 comments on commit 1323a4a

Please sign in to comment.