您必须将该检测作为后续步骤运行 webpack.config.js {test:/\.js$|\.jsx$/,use:{loader:'istanbul-instrumenter-loader',options:{esModules