Mercurial > hg > ugly-duckling
comparison 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 |
comparison
equal
deleted
inserted
replaced
39:e6eb133fa47c | 40:f7244f2155a3 |
---|---|
1 /** | |
2 * Created by lucas on 01/12/2016. | |
3 */ | |
4 let window = {}; | |
5 importScripts('inline.bundle.js'); // provides webpackJsonp | |
6 const webpackJsonp = window['webpackJsonp']; | |
7 importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require | |
8 | |
9 new (require('feature-extraction-worker'))(self); |