Skip to content

If I have install @babel/runtime-corejs3 do I still need to install core-js@3 in my package.json? #13698

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

You must be logged in to vote

You don't need to install core-js@3 if you are using @babel/transform-runtime, unless you import it somewhere in your app sources. If you are setting up a new project, I would recommend you to try out https://github.com/babel/babel-polyfills#babel-polyfills, it works well with preset-env, see https://github.com/babel/babel-polyfills/blob/main/docs/migration.md for migration.

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