view src/bootstrap-feature-extraction-worker.js @ 509:041468f553e1 tip master

Merge pull request #57 from LucasThompson/fix/session-stack-max-call-stack Fix accidental recursion in PersistentStack
author Lucas Thompson <LucasThompson@users.noreply.github.com>
date Mon, 27 Nov 2017 11:04:30 +0000
parents 103cc6f63da1
children
line wrap: on
line source
/**
 * Created by lucas on 01/12/2016.
 */
let window = {};
importScripts('/inline.bundle.js'); // provides webpackJsonp
const webpackJsonp = window['webpackJsonp'];
importScripts('/scripts.bundle.js'); // needs webpackJsonp, hence above - provides RequireJS
window = null; // now we have a reference to webpackJsonp, get rid of window
importScripts('/polyfills.bundle.js'); // provides the compiled FeatureExtractionWorker

new (require('feature-extraction-worker'))(self, requirejs);