Skip to content

Should one use both proposals of polyfill-corejs3 and shippedProposals of @babel/preset-env? #16243

Answered by JLHwung
nyngwang asked this question in Q&A
Discussion options

You must be logged in to vote

They are independent options. shippedProposals refers to language features supported by Babel, such as decorators (if they were shipped in a browser), while corejs.proposals refers to new JavaScript object / methods that you might need a polyfill, such as Array.prototype.toReversed (if they were still stage-3 and shipped in a browser).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nyngwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants