当前位置:网站首页>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:25:00 kainx

The phenomenon

When running or packaging on the front end js file ( Write or quote by yourself ) The file size of is too large and an error is reported

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

terms of settlement

Create in the project root directory .babelrc Add the following

{
    
  "compact": false
}
原网站

版权声明
本文为[kainx]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207052222580942.html