Shared Worker loader for Webpack.
var sharedWorker = require('shared-worker!./file.js')
var worker = new sharedWorker(name) // name is optional
worker.port.onmessage = (e) => {...}
worker.port.postMessage({foo: 'bar'})
worker.port.start()
Thanks @sokra for providing the codebase found within worker-loader!