Mercurial > hg > ugly-duckling
comparison src/bootstrap-feature-extraction-worker.js @ 93:8f2b2aed0df1
Update cli config to conform to latest version, needed to move around my worker bootstrapping bodge. Angular-cli for some reason now includes global scripts as strings in the webpack bundle, and they are eval'ed. So TypeScript no longer gets compiled. So once again I chase the mouse, re-purposing the new polyfill field to compile and bundle externals.ts once more!
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 23 Feb 2017 22:15:52 +0000 |
parents | d3abd81e8ab6 |
children | 103cc6f63da1 |
comparison
equal
deleted
inserted
replaced
92:140f0a13dec9 | 93:8f2b2aed0df1 |
---|---|
1 /** | 1 /** |
2 * Created by lucas on 01/12/2016. | 2 * Created by lucas on 01/12/2016. |
3 */ | 3 */ |
4 let window = {}; | 4 let window = {}; |
5 importScripts('inline.bundle.js'); // provides webpackJsonp | 5 importScripts('/inline.bundle.js'); // provides webpackJsonp |
6 const webpackJsonp = window['webpackJsonp']; | 6 const webpackJsonp = window['webpackJsonp']; |
7 importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require | 7 importScripts('/scripts.bundle.js'); // needs webpackJsonp, hence above - provides RequireJS |
8 importScripts('/polyfills.bundle.js'); // provides the compiled FeatureExtractionWorker | |
8 | 9 |
9 new (require('feature-extraction-worker'))(self, requirejs); | 10 new (require('feature-extraction-worker'))(self, requirejs); |