问题描述
我在meteor中的app.js文件超过了100KB的限制我现在如何解决这个问题?它会影响我的申请吗?是因为安装包吗?
My app.js file in meteor has exceeded the limit of 100KBHow 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"的样式进行了去优化.因为它超过了 Meteor 中最大的“100KB"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!