Fork me on GitHub
#cljs-dev
<
2024-07-27
>
p-himik11:07:50

A person https://clojureverse.org/t/wrong-clojurescript-repl-url/10852 that the Quick Start guide doesn't work if you provide a custom :port/`:host`. Tried to reproduce - seems that a custom :port works just fine if there's no --compile option. But with that option, the web page attempts to access the default ?... regardless of the specified :host/`:port`.

p-himik11:07:25

What I assume is going on is that without the --compile option, the third cond branch in cljs.repl.browser/send-static gets executed, the one with the ;; "/main.js" doesn't exist, provide our own comment, and it sets a custom CLOSURE_UNCOMPILED_DEFINES. But with the --compile option, the first branch gets executed, and it doesn't use :host/`:port` by itself. Perhaps, those parameters also don't get compiled into main.js, which results in the issue.