Chromium/Firefox-based browsers which not listed in Can I Use
Hi!
There are a certain number of Chromium-based browsers (Brave, Vivaldi, Yandex, etc.) and Firefox-based browsers (Tor, Waterfox) that are not listed in Can I Use — and it seems like they will never be added there. https://github.com/Fyrd/caniuse/issues/4571#issuecomment-433293575 https://github.com/Fyrd/caniuse/issues/2749
Because of this, I have to apply the following hack (e.g Chromium-based browsers) when building applications (webpack + babel):
- Find the Chromium version used in the target browser that’s missing from Can I Use.
- Find the Chrome version that corresponds to that Chromium version.
- Manually add that Chrome version to the Browserslist config.
This means that a clean config like this:
last 5 Chrome major versions
last 5 Edge major versions
last 5 ChromeAndroid major versions
last 5 Firefox major versions
last 5 Safari major versions
last 5 iOS major versions Turns into this after manual adjustments:
last 5 Chrome major versions
last 5 Edge major versions
last 5 ChromeAndroid major versions
last 5 Firefox major versions
last 5 Safari major versions
last 5 iOS major versions
chrome 133
chrome 132
chrome 131 This is inconvenient because steps 1 to 3 have to be done manually every time, and I have to keep modifying the config constantly. But if I understand the idea behind Browserslist correctly, the whole point is to avoid this kind of manual work and just rely on update-db.
Question: Would it be possible to create an additional data source to extend support for Chromium/Firefox-based browsers? One that would work transitively under the hood through Chrome/Firefox versions.
For example, for Brave: Brave version 1.75 would internally map to chrome 133
I found this outdated repository: https://github.com/browserslist/map-to-chrome. It feels like this data (if updated) could serve as the foundation for an additional mechanism to map Chromium/Firefox-based browsers to certain chrome versions. What do you think about this? I'm motivated to implement it if there are no ideological conflicts.
Source: browserslist/browserslist