Replies: 1 comment 1 reply
-
You should ask Babel. We only transpile high level queries like But as I know they use some database of version>feature. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, the
"chrome: 49"
query. My understand is babel will transpiled the JS code compatible with Chrome 49 version.How does
@babel/preset-env
know what kind of transpiled JS code should be emited? What babel plugin, polyfill should be used?The query is very fragmented, and it seems impossible to use a mapping of query and plugins, so babel can get the needed plugins by query.
For example:
"chrome 49"
query."chrome 86"
query.I didn't find the source code or any doc explain this process.
Beta Was this translation helpful? Give feedback.
All reactions