Welcome! Please see the About page for a little more info on how this works.

+1 vote
in ClojureScript by

The ClojureScript compiler determines the type of the Closure library in the transpile function. However, :es8is not implemented.

I have a fix for this, when a bug number has been assigned.

Thanks,
Hadil

2 Answers

0 votes
by

Not exactly sure what you are referring to, but ES8 is also called ES2017 or EcmaScript 2017. That option should be available via :ecmascript-2017.

by
Thank you Thomas. The compiler reads the tag of Closure libraries as `:es8` so it is not an external requirement, rather internal to cljs.
by
I think I understand the problem. This is about lowering Google Closure libraries that have their lang set to `es8` in the `deps.js` yes? Since `es8` is missing from the `cljs.closure/lang-level` vector, the `transpile` function handles this incorrectly. If this is in fact the issue please, confirm Hadil and I can open a JIRA issue.
by
Yes, David. This is correct. I have a fix if necessary. It just adds `:ecmascript8` to the `lang-level` def in the right place and adding it to `lang-key->lang-mode` as well.
0 votes
by

Thanks for the report, I created an issue here https://clojure.atlassian.net/browse/CLJS-3418

by
I created a patch but have no way on attaching it to the ticket.
by
Did you submit a CA? I think after that you should be able to login and attach.
...