使用 webpack 无法解析 jsx 语法 Module build failed
报错信息 大概意思:模块构建失败,无法解析 jsx. Module build failed: SyntaxError: /Users/yiming/Desktop/ReactTest/webpack2/app/main.js: Unexpected token webpack@v4 设置: webpack.config.js: module: { rules: [ { test: /\.jsx?$/, exclude: /node_modules/, use: { loader: babel-load
用户评论