Commit a69e7aff authored by Phil Hughes's avatar Phil Hughes

changed webpack config

parent df4fe43d
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({
......
......@@ -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)$/,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment