BABEL注意:代码生成器已取消优化了"app.js"样式.因为它超过了流星中"100KB"的最大值 [英] BABEL Note: The code generator has deoptimised the styling of "app.js" as it exceeds the max of "100KB in Meteor

查看:540
本文介绍了BABEL注意:代码生成器已取消优化了"app.js"样式.因为它超过了流星中"100KB"的最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在流星中的app.js文件已超过100KB的限制 我现在该如何解决? 它会影响我的申请吗? 那是因为安装了软件包吗?

My app.js file in meteor has exceeded the limit of 100KB How do I fix this now? Does It affects my application? Is that because of installing packages?

推荐答案

这不是真正的问题.只是警告. 当babel编译一些代码时,它会尝试提供可读的输出,但是当文件变大(> 100KB)时,babel认为(默认情况下)启用此选项是没有用的(因为是的,这是一个选项,请参见 https://stackoverflow.com/a/30879872/988941 了解更多信息).

This is not a real issue. Just a warning. When babel compiles some code, it try to offer a readable output, but when files become big (>100KB), babel considers (by default) that it's not useful to keep this option enabled (because yes it's an option, see https://stackoverflow.com/a/30879872/988941 for more information).

保留它不是问题.如果您不关心可读性,则可以使用compact: true.或false(如果这样做).仅"auto"值(默认值)将打印此警告.

It's not a problem to keep it. If you don't care about readability, you can just use compact: true. Or false if you do. Only "auto" value (default value) will print this warning.

这篇关于BABEL注意:代码生成器已取消优化了"app.js"样式.因为它超过了流星中"100KB"的最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆