cljsjs

jannis 2018-02-26T11:07:51.000433Z

Hello there! I’m trying to package zen-observable for cljsjs, but even if I add :module-type :commonjs to the :foreign-libs entry, the following file isn’t transformed for the browser and thus, fails to load with Uncaught ReferenceError: exports is not defined at zen-observable.inc.js:3: https://unpkg.com/zen-observable@0.8.6/lib/Observable.js (this is downloaded and sifted to zen-observable.inc.js). Is this expected to work?

jannis 2018-02-26T11:50:27.000171Z

Nevermind. What I’m really trying to do is package zen-observable-ts (required for Apollo) and that uses zen-observable ^0.7.0, maybe for this very reason.

2018-02-26T16:10:11.000654Z

I'm trying to create the package for react-infinite-tree, but at the externs generation I can't load the js into the generator. (https://unpkg.com/react-infinite-tree@1.0.0-alpha.5/dist/) I get "Uncaught ReferenceError: exports is not defined"

2018-02-26T16:10:34.000143Z

Am I missing a dependency (other than react), or is it something else?

2018-02-26T16:13:57.000791Z

I'm assuming distribution files on http://unpkg.com are compiled for browsers... is that wrong?

jmckitrick 2018-02-26T17:59:17.000648Z

Hi all. Does anyone know of any React avatar editors and/or gallery editors easily usable within Reagent/Clojurescript?

jmckitrick 2018-02-26T17:59:37.000051Z

If not, I’m willing to help import 2 of them, thought I’ve not done it before.

jmckitrick 2018-02-26T18:16:54.000234Z

I’m looking at this: https://www.npmjs.com/package/react-avatar-editor to start

jmckitrick 2018-02-26T18:19:28.000641Z

Running it through the jmmk externs generator with AvatarEditor gives a ‘namespace not found’ error

alpheus 2018-02-26T20:29:56.000344Z

when a pull request is approved, is it then installed on clojars?