读书破万卷,下笔如有神;不解其中意,霸葛找上门。 -- 尽信书则不如无书
上第一个bug:babel
Error: Plugin/Preset files are not allowed to export objects, only functions
原因: babel 的版本冲突 | babel 依赖包不兼容。
"@babel/cli": "^7.10.3", "@babel/core": "^7.10.3", "@babel/plugin-transform-runtime": "^7.10.3", "@babel/preset-env": "^7.10.3", "babel-loader": "^8.1.0", "babel-preset-es2015": "^6.24.1", "babel-runtime": "^6.26.0",
.babelrc 文件