problem description
the environmental background of the problems and what methods you have tried
webpack.base.conf.js already has babel related configuration
entry: {
app: ["babel-polyfill", "./src/main.js"]
},
in accordance with the guidance of the official website of vue, the compilation of node_modules has been added
{
test: /\.js$/,
loader: "babel-loader",
exclude: file => (
/node_modules/.test(file) &&
!/\.vue\.js/.test(file)
)
}
try for a long time, but it still doesn"t work. Ask God for advice!