annotate src/bootstrap-feature-extraction-worker.js @ 40:f7244f2155a3
Setup some scaffolding for bootstrapping a worker and loading into a service, providing a mechanism for implementing most of the logic which runs inside the worker in TypeScript.
author |
Lucas Thompson <dev@lucas.im> |
date |
Thu, 01 Dec 2016 15:46:33 +0000 |
parents |
|
children |
d3abd81e8ab6 |
rev |
line source |
dev@40
|
1 /**
|
dev@40
|
2 * Created by lucas on 01/12/2016.
|
dev@40
|
3 */
|
dev@40
|
4 let window = {};
|
dev@40
|
5 importScripts('inline.bundle.js'); // provides webpackJsonp
|
dev@40
|
6 const webpackJsonp = window['webpackJsonp'];
|
dev@40
|
7 importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require
|
dev@40
|
8
|
dev@40
|
9 new (require('feature-extraction-worker'))(self);
|