Welcome! Please see the About page for a little more info on how this works.

+1 vote
in ClojureScript by

I'm not sure if there are any technical hurdles in adding requiring-resolve to ClojureScript, but it would be nice to have parity so REPL utilities can be written using it.

1 Answer

0 votes

ClojureScript needs namespaces to be static and they also need to be statically required in the ns form. That technical limitation probably prevents requiring-resolve to work in ClojureScript, although in some environments it might works, such as self-hosted ClojureScript.

In the REPL things can be a little more dynamic, but a `requiring-resolve` is not possible due to all IO being async in JS and therefore CLJS.