This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-08
Channels
- # bangalore-clj (4)
- # beginners (88)
- # boot (12)
- # cljs-dev (10)
- # cljsjs (1)
- # clojure (284)
- # clojure-denmark (2)
- # clojure-dev (35)
- # clojure-italy (8)
- # clojure-russia (36)
- # clojure-spec (38)
- # clojure-uk (51)
- # clojurescript (145)
- # cursive (6)
- # data-science (1)
- # datomic (8)
- # duct (43)
- # emacs (9)
- # figwheel (2)
- # fulcro (29)
- # graphql (1)
- # immutant (3)
- # instaparse (1)
- # jobs (1)
- # jobs-discuss (1)
- # lumo (16)
- # off-topic (50)
- # onyx (90)
- # re-frame (6)
- # reagent (20)
- # remote-jobs (3)
- # ring-swagger (18)
- # schema (8)
- # shadow-cljs (141)
- # slack-help (3)
- # spacemacs (36)
- # unrepl (7)
- # vim (1)
- # yada (2)
Hey folks, I've been poking around the ClojureScript compiler trying to debug an issue for the last day or so, and I think I could use some help/pointers...
We're trying to load fuzzy.js as a commonjs module
{:file "clj/editor/src/js/vendor/fuzzy.js"
:provides ["fuzzy"]
:module-type :commonjs}
I got a small standalone example where that works fine, but in our actual setup I'm failing to get it to work. The fuzzy.js
is compiled fine, and getting munged to goog.provide("module$home$arne$tmp$fuzzy_test$js$vendor$fuzzy");
goog.addDependency("../js/vendor/fuzzy.js", ['module$home$arne$tmp$fuzzy_test$js$vendor$fuzzy'], []);
goog.addDependency("../my/test.js", ['my.test'], ['module$home$arne$tmp$fuzzy_test$js$vendor$fuzzy', 'cljs.core']);
but where I'm trying to get it to work it looks like this
goog.addDependency("../editor/components/ui/autocompleter.js", ['editor.components.ui.autocompleter'], ['cljs.core', 'fuzzy']);