How to introduce webpack-chain into babel-polyfill in Antd pro

built a website with antd pro 2.0, and there was a problem when supporting IE11;
is going to solve it by loading a series of plug-ins for babel. When loading babel-polyfill, because umi is introduced in the way of webpack-chain, rather than using webpack.config.js, I am not familiar with it, could you tell me how to introduce it?
the current situation is to open the report "promise" with IE11

Oct.20,2021

babel-preset-env

can be imported intelligently. There is no need to modify webpack.config.js

.

in addition to modifying the .babelrc file, you also need to introduce it in main.js ( import ). In addition, if it is only a problem of promise compatibility, you can introduce es6-promise

npm i es6-promise --save

import 'es6-promise/auto';
Menu