此配置
{:main warning-handlers
:warning-handlers [cljs.analyzer/default-warning-handler]}
将 :warning-handlers
设为默认值,如 https://script.clojure.org/reference/compiler-options#warning-handlers 中列出
使用
clj -M --main cljs.main --compile-opts compile.edn --compile
失败
{:type clojure.lang.ExceptionInfo,
:message
"Wrong number of args (3) passed to: clojure.lang.Symbol at line 1 /Users/danie/matter/source/cljs-config/src/warning_handlers.cljs",
:data
{:file
#object[java.io.File 0x27f8f1cc "/Users/danie/matter/source/cljs-config/src/warning_handlers.cljs"],
:line 1,
:column 1,
:tag :cljs/analysis-error},
:at [cljs.analyzer$error invokeStatic "analyzer.cljc" 780]}
完整复现在此: https://github.com/danieroux/cljs-config