-
Notifications
You must be signed in to change notification settings - Fork 214
Make it easier to use useBuiltIns: 'usage'
#1470
Comments
Perhaps we should switch from However since then, I'm presuming the bugs have been worked out solving (a), and we now dynamically set it to Either way we should probably also now replace the The description of entry vs usage can be seen here. |
Sounds like that could be a good move. It used to be noted as "experimental" in Babel docs, but doesn't seem to be any longer. I just started using it has seemed to work great so far, and dropped my bundle size significantly.
Yep! |
@edmorley I can squeeze in a PR tomorrow if you think changing this to |
@timkelty yeah let's do it :-) |
useBuiltIns
optionuseBuiltIns: 'usage'
K, I'll PR today! |
AFAIK, if you want to change
@babel/preset-env
'suseBuiltIns
option, you have to pass the preset config in its entirety, e.g.:…would it be worth it to make this easier to change via options (similar to how we have
options.targets
)?The text was updated successfully, but these errors were encountered: