Editorial question45.9K views820 votes0 answers3,855 following
AI-generatedWhich configuration takes precedence when both browserslist and explicit targets are defined in Babel preset-env?
Babel's preset‑env resolves the set of supported runtime environments by merging targets from a browserslist configuration and an explicit targets option. When both are present, the precedence governing which source takes effect is not specified in the documentation, creating ambiguity for build pipelines that depend on consistent polyfill injection. The res