https://github.com/kripken/worker-ui/wiki
Not familiar with webpack, will take a look.
You basically need to change BackendIDOperations and ReactEventListener to send/receive messages vs talking to the real APIs. It's already set up in the codebase to do this (because it actually worked at one time).
Webpack, per usual, already thought of this and has an answer for you :) https://github.com/webpack/worker-loader
https://github.com/kripken/worker-ui/wiki
Not familiar with webpack, will take a look.