What are the recommended browserslist settings? #8785
-
Since we deploy to several environments, we would like to optimize our Tauri environment to not include all polyfills and reduce the bundle size. For that, we currently use browserslist in Angular. At the moment it looks like this for Web/PWA and Mobile: {
"production": [
"last 10 Chrome versions",
"last 20 ChromeAndroid versions",
"last 5 Safari versions",
"last 3 iOS versions",
"last 10 Firefox versions",
"last 10 FirefoxAndroid versions",
"last 5 Edge versions",
"Firefox ESR",
"not dead",
"> 10% in DE"
],
"mobile": [
"iOS >= 13",
"Android >= 10",
"ChromeAndroid >= 79",
"Chrome >= 79"
]
} What would be the recommendation or supported platform range for Tauri? Since it is WebKit under the hood, what is the minimum compiled version? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That kind of depends on what WebKit features your app absolutely can't live without. E.g. some printing related APIs are only available on Big Sur and newer. You can use this table here to figure out the macOS version that corresponds to the Safari Version you want to support. So it's less about what version you must support and rather what versions you want to support. Though generally speaking here's the browserlist that comes as part of the default template and that will produce code compatible with all windows, most linux and also practically all macOS versions, i.e. a good baseline:
A few things of note:
|
Beta Was this translation helpful? Give feedback.
That kind of depends on what WebKit features your app absolutely can't live without. E.g. some printing related APIs are only available on Big Sur and newer.
You can use this table here to figure out the macOS version that corresponds to the Safari Version you want to support.
So it's less about what version you must support and rather what versions you want to support.
Though generally speaking here's the browserlist that comes as part of the default template and that will produce code compatible with all windows, most linux and also practically all macOS versions, i.e. a good baseline:
A few thi…