解决方案
在文件 .babelrc
或 babel.config.js
下配置
{
"presets":[
[
"@babel/preset-env",
{ "targets": "> 1% in AU and not dead", "shippedProposals": true },
],
["@babel/preset-react", { "runtime": "automatic" }]
]
}
微信扫一扫
解决方案
在文件 .babelrc
或 babel.config.js
下配置
{
"presets":[
[
"@babel/preset-env",
{ "targets": "> 1% in AU and not dead", "shippedProposals": true },
],
["@babel/preset-react", { "runtime": "automatic" }]
]
}
相关推荐