发表文章

[Shell] 导致兼容性问题的箭头函数 Arrow functions causing compatibility issues[opn]

derrickb 2017-10-9 78

你好,

我看到在5.0.0 的箭头功能介绍。 这不幸使模块与铬嵌入框架版本不兼容我必须使用为我的产品。
我会理解, 如果 ES6 的兼容性是必需的前进, 但它会很好地保持使用任何改进, 你介绍不需要保持我自己的本地编辑或被卡在旧版本。因此, 我会要求你重新考虑。

谢谢!

原文:

Hello,

I see in 5.0.0 that arrow functions were introduced. This unfortunately made the module incompatible with the Chromium Embedded Framework version I have to use for my product.
I'd understand if ES6 compatibility is required going forward, but it'd be great to keep using whatever improvements you introduce without needing to keep my own local edits or being stuck on an old version. As such, I'd ask that you reconsider.

Thank you!

相关推荐
最新评论 (5)
kevva 2017-10-9
1

你可以总是 transpile 的模块首先使用的东西像巴贝尔。我们不会支持任何不受节点支持的内容. js 本身。

原文:

You could always transpile the module first using something like Babel. We won't support anything that isn't supported by Node.js itself.

derrickb 2017-10-9
2

谢谢你的帮助。

原文:

I appreciate the helpful reply.

kevva 2017-10-9
3

如果你不是 transpiling, 你可能会多次碰到这个问题。如果您使用的 webpack 是有https://github.com/samverschueren/babel-engine-plugin , 它只 transpiles 需要它的模块。

原文:

You'll probably hit this issue many times in case you're not transpiling. In case you're using webpack there's https://github.com/samverschueren/babel-engine-plugin which only transpiles the modules which needs it.

derrickb 2017-10-9
4

谢谢你, 但我的设置是相当精干, 我想保持它的方式... 大量的纯 JavaScript, 并且只有几个关键节点模块 (包括 opn)。 然后咕噜着把东西结合起来。 宁愿避免下去的 webdev 工具兔洞!我会坚持 opn 4.0.2, 因为它的工作很好。

FWIW 如果你有兴趣, 我的产品是 Adobe Photoshop 的扩展。 Adobe 已经切换了他们的扩展平台, 以使用基金和一个本地节点进程的公用事业等。 不幸的是, 这意味着我锁定了任何的基金版本, 与特定版本的 Photoshop 附带。

原文:

Thank you but my setup is pretty lean and I'd like to keep it that way... lots of plain JavaScript, and only a few key node modules (including opn). And then grunt for combining things together. Would rather avoid going down the webdev tools rabbit hole! I'll stick with opn 4.0.2 as it's working fine.

FWIW in case you're interested, my product is an extension for Adobe Photoshop. Adobe has switched their extension platform to use CEF along with a local Node process for utilities and such. Unfortunately this means I'm locked into whatever CEF version that shipped with specific versions of Photoshop.

kevva 2017-10-9
5

明白了。可惜他们没有使用https://electron.atom.io/代替。祝你的应用程序:) 好运。

原文:

I see. Shame they didn't use https://electron.atom.io/ instead. Good luck with your app :).

返回
发表文章
derrickb
文章数
2
评论数
4
注册排名
57506