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 209 forks source link

Enable ignore :redef-in-file warning #571

Closed alex-dixon closed 7 years ago

alex-dixon commented 7 years ago

Seems related to #529.

Looking at the clojurescript source it appears there are two similar but different warnings :redef and :redef-in-file. The one I would like to silence is :redef-in-file. Approximate location in source is here: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L309

When I add redef-in-file in my compiler config figwheel says:

{:cljsbuild
   {:builds
    {:macros
     {:compiler
      {:warnings
       {:redef false
        :dynamic false
        :redef-in-file false
        ^---- The key :redef-in-file is unrecognized
        }}}}}}

Works fine without :redef-in-file.