Reputation: 18690
I want to use some plain .js files in my ClojureScript project. I'm building it using lein-cljsbuild and the .js files are standard Google Closure namespaces with proper goog.provide declarations. So basically what I want is to merge them into the compilation sources that goes int the Closure Compiler. Is that possible?
Upvotes: 5
Views: 705
Reputation: 84371
You should be able to add your Closure-aware JS files to :libs
under the :compiler
key in your build specification:
;; in project.clj
:cljsbuild {:builds [{:source-paths [...]
:compiler {:libs ["foo.js"] ; <- add the libs here
...}}]}
Upvotes: 2