I want to use 'useBuiltIns' option to load polyfills only for IE11 browser.
[
'@babel/preset-env',
{
useBuiltIns: 'entry',
debug: true,
modules: false,
corejs: '3',
targets: {
node: true,
browsers: [
'ie >= 11',
]
},
},
]
Here is the entry file import.
import "core-js/stable";
import "regenerator-runtime/runtime";
However, I can see that the entry point importing of core-js is loading all the polyfills for chrome and safari as well, which increases the file size. How can I specify the options to only load polyfill for IE? I tried adding specific version of chrome without success.