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

0 votes
in ClojureScript by

User supplied externs for use with } are only loaded in the 2-arity versions of {{cljs.closure/build}}, {{cljs.build.api/build}} and {{cljs.build.api/watch}} when } is nil.

Note: This only affects the warnings that are generated by the analyzer with * }; the externs are correctly passed to gclosure.

4 Answers

0 votes
by

Comment made by: oahner

This patch moves the loading of externs from {{cljs.env/default-compiler-env}} to {{cljs.closure/build}}.

0 votes
by

Comment made by: oahner

Ignore this patch, I just realized this makes it so the built-in externs are no longer loaded for the compiler and analyzer API.

0 votes
by

Comment made by: dnolen

I deleted the patch to avoid confusion.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2018 (reported by oahner)
...