Skip to content

Commit

Permalink
fix: enable shims
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Jul 29, 2023
1 parent 9440ed7 commit 8781cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/strategy/IndomitableStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class IndomitableStrategy implements IShardingStrategy {
}

private async createWorker(shardId: number, workerData: WorkerData): Promise<Worker> {
const thread = new Worker(join('./src/strategy', 'Thread.js'), { workerData });
const thread = new Worker(join(__dirname, 'Thread.js'), { workerData });
await once(thread, 'online');
const ipc = new MainStrategyWorker(shardId, thread, this);
thread
Expand Down
3 changes: 2 additions & 1 deletion tsup-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"splitting": false,
"sourcemap": true,
"clean": true,
"format": ["esm", "cjs"]
"format": ["esm", "cjs"],
"shims": true
}

0 comments on commit 8781cf0

Please sign in to comment.