fix: fix worker import

This commit is contained in:
Roman Hotsiy 2018-03-06 14:20:44 +02:00
parent 29b0846e57
commit 4896346998
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -6,7 +6,7 @@ let worker;
if (typeof URL !== 'undefined') {
try {
// tslint:disable-next-line
worker = require('workerize-loader?inline&fallback=false!./SearchWorker.worker').default;
worker = require('workerize-loader?inline&fallback=false!./SearchWorker.worker');
} catch (e) {
worker = require('./SearchWorker.worker').default;
}