首页 前端知识 解决[BABEL] Note: The code generator has deoptimised the styling of xxx.js as it exceeds the max of

解决[BABEL] Note: The code generator has deoptimised the styling of xxx.js as it exceeds the max of

2025-03-02 13:03:42 前端知识 前端哥 636 527 我要收藏

解决[BABEL] Note: The code generator has deoptimised the styling of xxx.js as it exceeds the max of 500KB

问题根源:

  •  babel默认情况下限制编译文件大小为500kb,超过500kb就会报以下错误

解决方案:

  •  其实把限制关掉即可,如下:

     在项目根目录中找到babel.config.js 里边配置compact:false即可,若无babel.config.js创建一个就行。

转载请注明出处或者链接地址:https://www.qianduange.cn//article/22201.html
标签
评论
发布的文章

算法002——复写零

2025-03-02 13:03:05

github上传代码(自用)

2025-03-02 13:03:59

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!