plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.16k stars 175 forks source link

Fix Release Makefile Targets for WebWorkers #139

Closed jvilk closed 11 years ago

jvilk commented 11 years ago

WebWorkers use a function called importScripts to import other JavaScript files into itself. This works fine for our development release -- import some needed files, define require in terms of importScripts, etc. But our compressed release builds are different. We'll have to remove calls to importScripts in the release build, and we'll have to change the Makefile to make both a compressed version of the frontend logic and the backend logic.

We'll have to address this before we can ship a WebWorker release build.

jvilk commented 11 years ago

The doppio library is separate from the frontend now, so we could potentially do this now. Here's what would be required:

jvilk commented 11 years ago

I just noticed that this isn't the main WebWorker issue. This is no longer an issue, since RequireJS works in a WebWorker.

http://requirejs.org/docs/api.html#webworker