bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 210 forks source link

Support non-boolean values for :output-wrapper compiler option #746

Closed cwick closed 3 years ago

cwick commented 3 years ago

See https://clojurescript.org/reference/compiler-options#output-wrapper

The clojurescript compiler should be able to accept a function, string, or boolean for the :output-wrapper option, but Figwheel only supports boolean:

-- Spec failed --------------------

  {:main ...,
   :target ...,
   :hashbang ...,
   :externs ...,
   :pretty-print ...,
   :language-in ...,
   :language-out ...,
   :output-wrapper "(function(){%s};).call(global);"}
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

should satisfy

  boolean?