The code generator has deoptimised the styling of “..” as it exceeds the max of

123 阅读1分钟

运行vue项目程序,报错The code generator has deoptimised the styling of “XXX” as it exceeds the max of “500kb”

image.png

上网查找到,可以在.babelrc文件中添加下面配置再次运行即可

{
  "compact": false,
  ...
}

参考:

解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb