module: {
rules:[
{
test:/\.js$/,
use: "babel-loader",
include: /src/,
exclude: /node_modules/
}
]
}
add use: "babel-loader" and you will report an error, but if you leave it out, you will not report an error!