当前位置:网站首页>The code generator has deoptimised the styling of xx/typescript.js as it exceeds the max of 500kb

The code generator has deoptimised the styling of xx/typescript.js as it exceeds the max of 500kb

2022-07-05 22:23:00 kainx

现象

在前端运行或者打包时某个js文件(自己编写或者引用)的文件大小太大报错

[BABEL] Note: The code generator has deoptimised the styling of xxxxxxx/typescript.js as it exceeds the max of 500KB.

解决办法

在项目根目录下新建.babelrc 添加下面的内容

{
    
  "compact": false
}
原网站

版权声明
本文为[kainx]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_26545503/article/details/125549967