Skip to content

I still don't get the differences between @babel/preset-env.useBuiltIns: entry and useBuiltIns: usage #14443

Answered by nicolo-ribaudo
nyngwang asked this question in Q&A
Discussion options

You must be logged in to vote

There are two different "filters":

  1. Which features are supported by your target browsers
  2. Which features you are using

entry only considers (1) (thus it optimizes import "core-js" to the minimum amount of imports needed for your targets), while usage also considers (2).

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@nicolo-ribaudo
Comment options

@nyngwang
Comment options

@nicolo-ribaudo
Comment options

@icy0307
Comment options

@nyngwang
Comment options

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
3 participants