babylonjs

How to prevent Closure Compiler from renaming any property or method of a specific object?

给你一囗甜甜゛ 提交于 2019-12-02 11:19:05
I am working with a huge 3rdparty library ( Babylon JS ) that will be served from its own CDN and cannot be included in my Closure Compiler run. The library contains one object and everything defined as parts of it. It has no externs file available so I started to write one but it is growing quickly. It would be easier to just tell Closure Compiler to not mangle any properties I am setting, including the ones I am setting on objects created by constructors on the object. EDIT: Added the name of the library. The Closure Compiler has no feature that would allow you to say "don't rename any