Fork me on GitHub
#cljsjs
<
2017-10-07
>
juhoteperi10:10:51

Hmph, have you tested other libs using global-exports? React, Leaflet, etc.

ag10:10:43

I have tried react-transition-group - it didn't work, but for some other reason

juhoteperi10:10:09

are you using latest Cljs version?

ag10:10:56

in my project? Yes... well not the latest latest - "1.9.908"

juhoteperi10:10:56

Okay, should be enough

juhoteperi10:10:39

In your examples it looks like you are calling require as function/from REPL, are you trying this or requiring from ns-form?

ag10:10:02

I tried both, not so much in real ns - my testing setup somewhat clunky and slow - it's still using Phantom. Spinning up a real browser repl is also slow. So for me (every time after I install package locally) was faster to get a node or rhino repl. I assumed if the globals would work they would work in any repl - node, rhino or connected to the browser

ag10:10:21

maybe I'm wrong

ag10:10:04

maybe it's specific to Enzyme. maybe there's something needs to be done in webpack conf. I dunno.

ag10:10:28

To be honest I almost don't care anymore. It's just little part of me - stupid, stubborn and curious still wondering why it didn't work. Thank you for merging it.

ag10:10:39

It can be used now. It just needs a nice wrapper. Maybe I will just make a repo with a couple example tests and add a link to that repo in package's readme