Skip to content

Commit 9addd23

Browse files
author
Kartik Raj
committed
dimmt
1 parent 65d27c2 commit 9addd23

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

build/webpack/webpack.extension.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ const config = {
5151
},
5252
],
5353
},
54-
{
55-
test: /\.worker\.js$/,
56-
use: { loader: 'worker-loader' },
57-
},
5854
],
5955
},
6056
externals: [

src/client/common/process/worker/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import { traceError, traceVerbose } from '../../../logging';
1212
*/
1313
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1414
export async function executeWorkerFile(workerFileName: string, workerData: any): Promise<any> {
15-
if (!workerFileName.endsWith('.worker.js')) {
16-
throw new Error('Worker file must end with ".worker.js" for webpack to bundle webworkers');
17-
}
1815
return new Promise((resolve, reject) => {
1916
traceVerbose(`Starting worker ${workerFileName} with data ${JSON.stringify(workerData)}`);
2017
const worker = new Worker(workerFileName, { workerData });

0 commit comments

Comments
 (0)