@dnolen so are you getting around the problem of not knowing where a bundler will output its bundle file by having a convention of having it deployed to output-dir + “main.js” ? I.e. the browser-repl, default-main and index.html all rely on a bundler outputting to main.js
just checking because I’m wresting with this lack of knowledge as well, and if this is going to be the convention going forward, figwheel might as well conform to it
after a review of the code this seems to be what’s happening
browser-repl
used to look at :output-to
and that was broken in the :bundle
case, so it doesn't anymore
browser-repl
attempts to load main.js
but this is a result of the default index.html
not browser REPL really
if you supply index.html
it can be anything
default-main
doesn't look for anything by default as you don't need to look for anything for REPLs
default-compile
sets :output-to
to main.js
if none supplied
that enumerates the cases a bit
but to directly answer your question - nothing in ClojureScript itself needs to know about the bundle output file
since that is up to the user how it gets loaded (i.e. a script tag in the browser)
for Figwheel if it simplifies by following a convention I don't see why not - but ClojureScript simply doesn't address the problem at all - it just ignores it
@bhauman ^
gotcha