changed webpack config
This commit is contained in:
parent
df4fe43d73
commit
a69e7affbc
2 changed files with 5 additions and 3 deletions
|
@ -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({
|
||||
|
|
|
@ -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)$/,
|
||||
|
|
Loading…
Reference in a new issue