解决[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创建一个就行。
解决[BABEL] Note: The code generator has deoptimised the styling of xxx.js as it exceeds the max of 500KB
在项目根目录中找到babel.config.js 里边配置compact:false即可,若无babel.config.js创建一个就行。
2025-03-02 13:03:05
2025-03-02 13:03:05
2025-03-02 13:03:05
2025-03-02 13:03:05
2025-03-02 13:03:03
2025-03-02 13:03:03
2025-03-02 13:03:59
2025-03-02 13:03:59
2025-03-02 13:03:58
2025-03-02 13:03:58