简体   繁体   中英

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. Why is this so?

Link= 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. 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.

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.

I would like to add that I have contributed to Plovr last week to be able to support the latest version. However, since medium took over the NPM package I created a fork that I like to keep updated. Google Closure Compiler and Google Closure Library are both excellent tools. 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. I plan to add this later to npm too. It works with the current latest release of closure (v20190929, released 14 days ago as of writing this post)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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