今天遇到的报错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'
}
posted @ 2021-02-02 22:51  糖~豆豆  阅读(8573)  评论(0编辑  收藏  举报
Live2D