Commit a69e7aff authored by Phil Hughes's avatar Phil Hughes

changed webpack config

parent df4fe43d
import { computeDiff } from './diff'; import { computeDiff } from './diff';
// eslint-disable-next-line prefer-arrow-callback self.addEventListener('message', (e) => {
self.addEventListener('message', function diffWorker(e) {
const data = e.data; const data = e.data;
self.postMessage({ self.postMessage({
......
...@@ -118,7 +118,10 @@ var config = { ...@@ -118,7 +118,10 @@ var config = {
}, },
{ {
test: /\_worker\.js$/, test: /\_worker\.js$/,
loader: 'worker-loader', use: [
{ loader: 'worker-loader' },
{ loader: 'babel-loader' },
],
}, },
{ {
test: /\.(worker(\.min)?\.js|pdf|bmpr)$/, 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