lein-figwheel icon indicating copy to clipboard operation
lein-figwheel copied to clipboard

Inserting :foreign-libs with quotes crashes Figwheel

Open mtruyens opened this issue 7 years ago • 1 comments

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...

mtruyens avatar Dec 08 '17 17:12 mtruyens

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.

bhauman avatar Dec 09 '17 03:12 bhauman