Question: is the module compatible with amd/requirejs ?
suryagh opened this issue · 4 comments
Can beaver-logger
module be loaded using requireJS on the client side?
I see there is a check for amd
, but wanted to check if someone was successful loading this on the browser using requireJS module loader
, since I'm getting $logger
not defined on the client side.
Link to any repo
that uses beaver-logger
with requireJS
would be very helpful if one exist.
Here is the jsfiddle to reproduce the issue.
I also tried various other combinations, like, with shim
configuration but no luck.
Hmm weird. We're using webpack's umd output, but I haven't experimented much with amd. I'll take a look.
Managed to get it working -- http://jsfiddle.net/qc10sehq/27/
Please let me know if this works for you.
That worked. Thank you!