function createEmbeddedWorkerFromBundle (workerBundleFile, workerEmbeddedFile) {
  var workerScript = String(fs.readFileSync(workerBundleFile));

  var workerDataUrl = 'data:application/javascript;base64,' + btoa(workerScript);

  fs.writeFileSync(workerEmbeddedFile, 'module.exports = \'' + workerDataUrl + '\';\n');
}
Create an embedded version of the worker code: a data url.
@param {string} workerBundleFile     For example 'dist/worker.bundle.js'
@param {string} workerEmbeddedFile   For example 'dist/worker.embedded.js'