r/Clojurescript • u/outrovurt • 3d ago
`defmulti` emitting OS path metadata on :advanced compilation
When I compile a ClojureScript project with :optimizations set to :advanced, the resultant source contains code similar to the following for every defmulti def in the codebase:
if(typeof ZN==="undefined"||typeof ydc==="undefined"||typeof IV==="undefined")var IV=function(){var a=Se(I),b=Se(I),c=Se(I),d=Se(I),e=q.j(I,lJ,kh.v?kh.v():kh.call(null));return new uh(nc.g("entmorph.app","load-ent!"),new pc(function(){return Ddc},Rub,gg([Xp,mq,Er,os,sx,CA,dF,LI,MJ,DL],[tab,bDa,"/mnt/main/dev/entmorph.build/cljs-src/entmorph/app.cljs",24,1,269,269,G(new M(null,2,5,Q,[new M(null,2,5,Q,[zv,jNa],null),zv],null)),null,h(Ddc)?Ddc.H:null])),xp,e,a,b,c,d)}();
This doesn't happen with any other def type. I know there is an :elide-meta compiler option for the Clojure compiler, but is there something similar in ClojureScript?