今天遇到的报错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'
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM