Fork me on GitHub

Hi! I’m using cljsjs for the first time (specifically, the Dragula library: When I compile with :whitespace optimization, everything works as expected. But when I compile with advance compilation, I get the JS error dragula(…).Xb is not a function My cljs setup is minimal in my project.clj:

    [{:source-paths ["src-cljs"]
      :jar true
      :compiler {:output-to "resources/public/js/main.js"
                 :optimizations :advanced}}]}
I assume that I am missing some option somewhere. If someone can spot the error quickly, can you let me know?


I think it is actually the click event .on which is translated to Xb


is there a way to override the extern locally? I think it is missing the ‘on’ function, but I would like to test it out. If so, I could do a pull request.


yes, you can create local externs


and either include them with deps.cljs or compiler options :externs


or, you can clone packages repo, fix the extern there and install jar to local mvn repo