Support targeting webworker

Description

Add :webworker as a supported target.

This removes the need for a custom bootstrap script for webworkers in development, as described here:
https://github.com/bhauman/lein-figwheel/wiki/Using-Figwheel-with-Web-Workers

Attaching a first patch to review and feedback.

Environment

None

Activity

Show:
Dieter Komendera
December 22, 2017, 9:20 PM

Rebased patch

David Nolen
December 22, 2017, 5:43 PM

Just needs a rebase

Dieter Komendera
December 20, 2017, 1:35 PM

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.

Dieter Komendera
July 13, 2017, 12:24 PM

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.

Completed

Assignee

Dieter Komendera

Reporter

Dieter Komendera