当前位置: 首页 > 工具软件 > Note IT > 使用案例 >

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

荀正谊
2023-12-01

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

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

主要是用到的一个js文件大约500kb报的错

解决方案:

在项目根目录下新建.babelrc,并编写如下代码即可

{
  "compact": false
}
 类似资料:

相关阅读

相关文章

相关问答