google/closure-compiler-js

ReferenceError: window is not defined

anlexN opened this issue · 7 comments

default
1
2

@anlexN are you using ECMASCRIPT_2017 as the output mode?

no. it is es2015

Most users should stick to language_out = ES5 for now. Otherwise you're missing out on many optimizations, and typechecking.

(But we should still fix this crash)

FYI we've pushed 20170910.0.1, which includes a fix for this issue. PTAL and let us know if it's fixed.

could you please showcase es2015+ feature supported by closure-compiler-js?

What kind of showcasing do you have in mind? https://github.com/google/closure-compiler/wiki/ECMAScript6 discusses what we support (though it may be somewhat out of date, I think it's pretty close to accurate)