怎么解决ant-design-pro@2.0.0版本下 umi-plugin-polyfills 报错

#1

#2

是否是使用了 polyfills配置?如果是,且umi版本在2.1.0+的话请注释此配置,改为targets。例如:
{
plugins:[
[
‘umi-plugin-react’,
{
antd:true,
…other,
//polyfills:[‘ie9’]//注释掉
}
]
],
targets:{
ie:9,
chrome:49,
…other
}
}

#3

详细可参考官网:
https://umijs.org/zh/config/#targets

#4

谢谢,你说的对的,改成你说的就对了,