splittable icon indicating copy to clipboard operation
splittable copied to clipboard

Allow passing externs files for Closure Compiler

Open mkhatib opened this issue 8 years ago • 5 comments

Doesn't look like there's a way to pass externs files to the compiler.

mkhatib avatar Dec 13 '16 04:12 mkhatib

Why do you want to pass it?

cramforce avatar Dec 13 '16 05:12 cramforce

To tell the underlying closure compiler what externs do I have. For example if I am relying on a third-party library being loaded on global object.

mkhatib avatar Dec 13 '16 05:12 mkhatib

Mhmm, but that is complicated :)

Property obfuscation is turned off, so most things should compile without an extern.

It would be easy to add, of course, but I wanted to keep options to what is really needed.

cramforce avatar Dec 13 '16 05:12 cramforce

I see. Curious is property obfuscation disabled because it can't be done across the output modules or why?

mkhatib avatar Dec 13 '16 05:12 mkhatib

No, works fine. Disabled because it breaks React plugins.

On Dec 12, 2016 9:42 PM, "Mohammad Khatib" [email protected] wrote:

I see. Curious is property obfuscation disabled because it can't be done across the output modules or why?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cramforce/splittable/issues/42#issuecomment-266650510, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFeT4TlMRctLK-Pk3pKVjGSI8IDl3pqks5rHjBNgaJpZM4LLVwB .

cramforce avatar Dec 13 '16 06:12 cramforce