当前位置: 代码迷 >> 综合 >> [BABEL] Note: The code generator has deoptimised the styling of .js as it exceeds the max of 500KB.
  详细解决方案

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

热度:59   发布时间:2024-01-04 14:56:23.0

某个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,"presets": ["env", "react", "stage-0"],"plugins": ["transform-runtime"]
}
或者

{ "compact": false}

  相关解决方案