在前端运行或者打包时某个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 }