rules: [{
test: /\.jsx?$/,
loader: 'babel-loader',
include: [
path.resolve(__dirname, 'src'),
/node_modules[\\/]scratch-[^\\/]+[\\/]src/,
/node_modules[\\/]pify/,
/node_modules[\\/]@vernier[\\/]godirect/
],
options: {
// Explicitly disable babelrc so we don't catch various config
// in much lower dependencies.
babelrc: true,
plugins: [
'@babel/plugin-syntax-dynamic-import',
// '@babel/plugin-transform-async-to-generator',
// '@babel/plugin-proposal-object-rest-spread',
['react-intl', {
messagesDir: './translations/messages/'
}]],
presets: [
[
"@babel/preset-env",
{
"targets": {
"chrome": "58",
"android": "6.0"
}
}
],
"@babel/preset-react",
],
}
},
兄弟们我的targets写了两个参数就报错,我只留一个"chrome": "58"就能通,报的错是regeneratorRuntime is not defined,请我该如何修改