problem description
webpack common code vendor shows that the es6 syntax has not been compiled, but other package files have been compiled
related codes
/ / Please paste the code text below (do not replace the code with pictures)
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: "babel-loader",
query: {
"plugins": [["transform-decorators-legacy"], ["transform-runtime"],
],
"presets" : [
[ "env", {
"modules": false
}],
"es2015",
"react",
"stage-0"
]
}
}
//
new webpack.optimize.CommonsChunkPlugin({
name: "vendor",
filename: "js/[name].[hash:8].js"
}),
Picture
is the content of this and is not compiled