Mercurial > hg > ugly-duckling
diff src/bootstrap-feature-extraction-worker.js @ 73:d3abd81e8ab6
Bootstrap RequireJS for injecting into the worker.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 18 Jan 2017 10:18:35 +0000 |
parents | f7244f2155a3 |
children | 8f2b2aed0df1 |
line wrap: on
line diff
--- a/src/bootstrap-feature-extraction-worker.js Wed Jan 18 10:18:10 2017 +0000 +++ b/src/bootstrap-feature-extraction-worker.js Wed Jan 18 10:18:35 2017 +0000 @@ -6,4 +6,4 @@ const webpackJsonp = window['webpackJsonp']; importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require -new (require('feature-extraction-worker'))(self); +new (require('feature-extraction-worker'))(self, requirejs);