今天遇到的报错Babel noteThe code generator has deoptimised the styling of ...as it exceeds the max of 500KB.
解决办法如下:
{
test: /.js$/,
exclude: /node_modules/,
use: 'babel-loader'
}
然并卵,我已经设置了这个东西了,突然发现我的文件并不在node_modules,于是我改成这样,因为这个文件也需要添加到忽略
{
test: /.js$/,
exclude: /node_modules|myfile/,
use: 'babel-loader'
}

浙公网安备 33010602011771号