简体   繁体   English

无需夜间构建即可将ECMAScript 6与Firefox插件SDK结合使用

[英]Using ECMAScript 6 with Firefox add-ons SDK without nightly builds

I'm developing a Firefox add-on with which I want to use ECMAScript 6 features, but that's only available in the nightly builds. 我正在开发一个Firefox插件,希望使用它使用ECMAScript 6功能,但这仅在夜间版本中可用。 The nightly builds are sadly super slow and development suffers because of that. 令人遗憾的是,夜间构建速度非常缓慢,因此开发会遭受损失。

Is there any way to use ECMAScript 6 for a Firefox add-on in combination with "jpm postwatch"? 有什么方法可以将ECMAScript 6与“ jpm postwatch”结合使用用于Firefox附件吗?

Most ECMA6 features are already available in stable builds. 大多数 ECMA6功能已经可以在稳定版本中使用。 Web content has to opt-in into some stuff, but that is not required from addons. Web内容必须加入某些内容,但这不是插件所必需的。

If you want to use ES6 features that are only available in nightly then that's because they're either new or unstable, it wouldn't make sense to test against stable anyway. 如果您想使用仅在每晚可用的ES6功能,那是因为它们是新功能还是不稳定功能,因此无论如何都要对稳定进行测试。

The nightly builds are sadly super slow and development suffers because of that. 令人遗憾的是,夜间构建速度非常缓慢,因此开发会遭受损失。

It shouldn't, maybe that's the issue you need to fix. 它不应该,也许这就是您需要解决的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM