Okay, I give up. I couldn't figure out how to make global exports work. I feels like I've tried everything:
- updated boot-cljsjs to 0.8.1
- used deps-cljs task and external deps.cljs file
- tried all sorts of combinations of :provides
and :global-exports
- in various ways I have edited .ext.js
file
- I've tried testing in node and rhino repls
and still couldn't figure out how to make it possible to require it not like this:
(require '[cljsjs.enzyme])
js/enzyme
but like this:
(require '[cljsjs.enzyme :as enz :refer [shallow])
I am damn stubborn but I'm stuck. F*ck it! I'll just write a wrapper namespace in my project.God I hate javascript and everything about it. I hate its libraries. I hate their patterns and tools. Webpack, Browserify, Gulp, Bower, npm - all that shit