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

Inserting :foreign-libs with quotes crashes Figwheel #628

Open mtruyens opened 6 years ago

mtruyens commented 6 years ago

I tried to insert the :foreign-libs example given by David Nolen at https://clojurescript.org/news/2017-07-30-global-exports

:foreign-libs [{:provides ["cljsjs.react"]
                :global-exports '{cljsjs.react React}}
               {:provides ["cljsjs.react.dom"]
                :global-exports '{cljsjs.react.dom ReactDOM}}]

However, the quotes before the inner maps crash Figwheel (0.5.14) during its validation phase...

bhauman commented 6 years ago

It shouldn't crash so this is a bug.

If you want to use this now, it will work without the quotes.

Also, whenever supplying config in a leinigen project.clj you shouldn't quote them as leinigen automatically quotes everything.