Support targeting webworker
Add :webworker as a supported target.
This removes the need for a custom bootstrap script for webworkers in development, as described here:
Attaching a first patch to review and feedback.
Just needs a rebase
The patch doesn't apply any more. Since tools like leiningen and shadow-cljs have good development support for websocket and do the job already, it might not be warranted to go the route I went with introducing a new compile target type.
This can be closed.
Our use case for having it as a different compile target is that we'd able to specify different :optimizations for the webworker. We're able to ship the webworker with :simple, so we can use ClojureScript eval in the webworker (with all the content policy restrictions one can put on a webworker), while compiling the main app with :advanced.
I realize this might be an edge case though.