-
["@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.
proposalsoption makes no sense foruseBuiltIns: entrysince that replaces the import of anycore-jsentry 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@4it 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: usageandcore-js@3. In this case, withproposals: trueusedcore-js/core-js/fullsubset of features, withproposals: false(default) -core-js/stablesubset.