webpack.config.js里的设置:
module: {
rules: [
{
test:/\.jsx$/,
exclude: /node_modules/,
use: ["babel-loader"],
},
],
},
.babelrc里
{
"plugins": ["transform-decorators-legacy"],
"presets": [
["es2015", { "modules": false }],
"react",
"stage-1",
]
}
但是收到一个错误You may need an appropriate loader to handle this file type
。
请问这是怎么回事呢?