cnpm install @babel/plugin-proposal-decorators --save-dev
//package.json 添加
"babel": {
"presets": [
"react-app"
],
"plugins":[
["@babel/plugin-proposal-decorators", { "legacy": true }]
]
},
cnpm install @babel/plugin-proposal-decorators --save-dev
//package.json 添加
"babel": {
"presets": [
"react-app"
],
"plugins":[
["@babel/plugin-proposal-decorators", { "legacy": true }]
]
},