简体   繁体   English

plovr是否支持最新的闭包库?

[英]Does plovr support the latest closure library?

I was using plovr as closure compiler for the latest google closure library, but it think it plays nicely. 我使用plovr作为最新的Google闭包库的闭包编译器,但它认为它的播放效果很好。 Why is this so? 为什么会这样呢?

Link= http://plovr.com/docs.html 链接= http://plovr.com/docs.html

Thanks in advance for the help, 先谢谢您的帮助,

Kiran 基兰

Generally speaking, if you update the library, you would also need to update the compiler, as they're designed to work together. 一般来说,如果您更新库,则还需要更新编译器,因为它们是为了协同工作而设计的。 Getting a new compiler release to work with Plovr is non-trivial since it makes use of its internals and thus Plovr itself must be recompiled. 要使新的编译器版本与Plovr一起使用不是一件容易的事,因为它利用了其内部,因此必须重新编译Plovr本身。 While Plovr supports pointing to a custom Closure Library checkout, there have been enough changes (eg dependency, type system, module declarations) in Closure to make Plovr's stale compiler incompatible with recent library releases. 尽管Plovr支持指向自定义的Closure库检出,但是Closure中进行了足够的更改(例如,依赖性,类型系统,模块声明),使Plovr的过时编译器与最新库版本不兼容。

Here are a couple blocking issues in supporting more recent editions of the Library: 在支持图书馆的最新版本时,存在一些阻碍性的问题:

This is particularly striking as new namespaces in the Library make use of the goog.module -style declaration. 当库中的新名称空间使用goog.module -style声明时,这一点尤其令人震惊。

I would like to add that I have contributed to Plovr last week to be able to support the latest version. 我还要补充一点,我上周为Plovr做出了贡献,以便能够支持最新版本。 However, since medium took over the NPM package I created a fork that I like to keep updated. 但是,由于medium接管了NPM程序包,因此我创建了一个我希望不断更新的fork。 Google Closure Compiler and Google Closure Library are both excellent tools. Google Closure编译器和Google Closure库都是出色的工具。 Plovr is also. 普洛弗也是。

Please take a look over at: https://github.com/Plovr/Plovr-build/packages/36644 which is the npm package hosted at github packages. 请看一下: https : //github.com/Plovr/Plovr-build/packages/36644 ,它是托管在github软件包中的npm软件包。 I plan to add this later to npm too. 我计划稍后再将其添加到npm。 It works with the current latest release of closure (v20190929, released 14 days ago as of writing this post) 它与当前最新的闭包版本(v20190929,在撰写本文时于14天前发布)一起使用

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

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