cherry
cherry copied to clipboard
Support ability to import user namespaces
(ns test.utils)
(ns test.cherry-test
(:require [test.utils :as t-utils]))
$ npx cherry compile test/cherry_test.cljs
file:///Users/alex/code/cherry-test/node_modules/cherry-cljs/lib/compiler.js:188
qy=function(a){a=$APP.z(a);var b=$APP.A(a);a=$APP.C(a);var c=$APP.ah(a);a=$APP.Qe.g(c,$APP.py);var d=$APP.Qe.g(c,$APP.qs);c=b.split("$",2);b=$APP.D.l(c,0,null);c=$APP.D.l(c,1,null);c=$APP.z($APP.q(c)?c.split("."):null);var e=$APP.A(c);$APP.C(c);c=$APP.v.h($APP.q($APP.q(d)?$APP.Sd.g("default",e):d)?Ox(nr.l?nr.l("import %s from '%s'",d,b):nr.call(null,"import %s from '%s'",d,b)):null);d=$APP.v.h($APP.q($APP.q(d)?$APP.Ya(e):d)?Ox(nr.l?nr.l("import * as %s from '%s'",d,b):nr.call(null,"import * as %s from '%s'",
^
TypeError: b.split is not a function
at qy (file:///Users/alex/code/cherry-test/node_modules/cherry-cljs/lib/compiler.js:188:127)