Webworkers
A new FuseBox v4 feature
What are Workers?
Workers are a means of multi-threading in javascript. Because javascript is single-threaded, workers must act as a totally separate context. The following is the problem set which FuseBox works through:
- Workers never have acess to the
window
object - Each worker must have its own bundle
- All paths to workers must be overwritten to instead point to the workers' bundle.
Fortunately, FuseBox catches Workers and handles all of these by default.