You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you wrote "export enum ...", the generated ES6 JavaScript would
fail to compile in the Closure compiler. I tracked this down to
a bug that was fixed in the upstream Closure compiler, so to fix
this I had to make us use a newer version of the upstream compiler.
To use a newer version of the upstream compiler, I removed one of
our indirection layers: we previously used the 'closure-compiler'
npm library which pulled in 'google-closure-compiler', but now the
latter module exposes a simple API so it's easy enough to just use
it directly.
Fixes issue #50.
If we generate code like the following, it fails to compile in Closure:
The error message:
Something about export and typedef interacting poorly maybe?
The other weird thing is that I can't reproduce this with the Google-internal JS compiler, which makes me wonder if it's a bug.
The text was updated successfully, but these errors were encountered: