Skip to content

Commit

Permalink
dimmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Nov 17, 2023
1 parent 65d27c2 commit 9addd23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions build/webpack/webpack.extension.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ const config = {
},
],
},
{
test: /\.worker\.js$/,
use: { loader: 'worker-loader' },
},
],
},
externals: [
Expand Down
3 changes: 0 additions & 3 deletions src/client/common/process/worker/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import { traceError, traceVerbose } from '../../../logging';
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
export async function executeWorkerFile(workerFileName: string, workerData: any): Promise<any> {
if (!workerFileName.endsWith('.worker.js')) {
throw new Error('Worker file must end with ".worker.js" for webpack to bundle webworkers');
}
return new Promise((resolve, reject) => {
traceVerbose(`Starting worker ${workerFileName} with data ${JSON.stringify(workerData)}`);
const worker = new Worker(workerFileName, { workerData });
Expand Down

0 comments on commit 9addd23

Please sign in to comment.