What are the valid env.targets? #7855
-
I am implementing a function to convert browserslist results to SWC targets, similar to https://github.com/marcofugaro/browserslist-to-esbuild/tree/main. I keep getting error messages like the following:
The message seem to happens because I am providing an invalid target. For example "baidu", "kaios" or "bb" are not supported. According to SWC documentation, the following environments are supported:
But it is stated that they are "example" environments. I am wondering where I could find a list of ALL the supported environments? Thank you! Patrick |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
We use browserslist-rs to query those, so best bet is looking into browserslist-rs supported lists. |
Beta Was this translation helpful? Give feedback.
-
@kwonoj Thank for your answer. Sadly, browserslist-rs doesn't provide much documentation and nothing is mentionned about the supported list. Definitely, it doesn't support the same list as the original browserslist tool. |
Beta Was this translation helpful? Give feedback.
-
I opened an issue in the browserslist-rs repository, maybe I'll get an answer: browserslist/browserslist-rs#20 |
Beta Was this translation helpful? Give feedback.
-
If someone is looking for the list, it's here: browserslist-rs/build.rs |
Beta Was this translation helpful? Give feedback.
If someone is looking for the list, it's here: browserslist-rs/build.rs