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

Problem setting :output-to in the :cljs-base module #608

Closed eduardobull closed 6 years ago

eduardobull commented 6 years ago

When splitting code using the modules compiler option, ClojureScript defaults to generating a cljs_base.js as the base module. You can choose another output file explicitly setting the :cljs-base module with only the :output-to key set. The problem is that the schema requires an :entries key for each module configured (including the :cljs-base module).

https://github.com/bhauman/lein-figwheel/blob/6abba55b486881b6bab4fd2d23799e9c8beaab8e/sidecar/src/figwheel_sidecar/schemas/cljs_options.clj#L300-L302

https://github.com/bhauman/lein-figwheel/blob/6abba55b486881b6bab4fd2d23799e9c8beaab8e/sidecar/src/figwheel_sidecar/schemas/cljs_options.clj#L262-L267

eduardobull commented 6 years ago

Thanks! 👍