changed webpack config

This commit is contained in:
Phil Hughes 2017-12-16 00:24:18 +00:00
parent df4fe43d73
commit a69e7affbc
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,6 @@
import { computeDiff } from './diff';
// eslint-disable-next-line prefer-arrow-callback
self.addEventListener('message', function diffWorker(e) {
self.addEventListener('message', (e) => {
const data = e.data;
self.postMessage({

View File

@ -118,7 +118,10 @@ var config = {
},
{
test: /\_worker\.js$/,
loader: 'worker-loader',
use: [
{ loader: 'worker-loader' },
{ loader: 'babel-loader' },
],
},
{
test: /\.(worker(\.min)?\.js|pdf|bmpr)$/,