-
["@babel/preset-env", { "useBuiltIns": "usage", "corejs": { "version": "3.8", "proposals": true } }] what's the equivalent usage with above? I want to add the polyfill by myself. import "core-js";
// or
import "core-js/full"; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In It seems your question is related to |
Beta Was this translation helpful? Give feedback.
proposals
option makes no sense foruseBuiltIns: entry
since that replaces the import of anycore-js
entry to the import only required modules for your target environments.In
core-js@3
,import "core-js"
is a full equal ofimport "core-js/full"
. Incore-js@4
it will be changed andimport "core-js"
will be equal ofimport "core-js/actual"
("stable" + stage 3 proposals).It seems your question is related to
useBuiltIns: usage
andcore-js@3
. In this case, withproposals: true
usedcore-js
/core-js/full
subset of features, withproposals: false
(default) -core-js/stable
subset.