The code generator has deoptimised the styling of xx/typescript.js as it exceeds the max of 500kb
在前端运行或者打包时某个js文件(自己编写或者引用)的文件大小太大报错:[BABEL] Note: The code generator has deoptimised the styling of xxxxxxx/typescript.js as it exceeds the max of 500KB.主要是用到的一个js文件大约500kb报的错解决方案:在项目根目录下新建.babelrc,并编
·
在前端运行或者打包时某个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
}
更多推荐
已为社区贡献1条内容
所有评论(0)