Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix: disable thread pool atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 22, 2022
1 parent f2b5085 commit eacd395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/peeky-runner/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export async function setupRunner (options: RunnerOptions) {
const poolOptions: PoolOptions = {
filename: new URL('./runtime/worker.js', import.meta.url).href,
maxThreads: options.config.maxWorkers || undefined,
// WebContainer compatibility (Stackblitz)
useAtomics: false,
}

if (options.config.isolate) {
Expand Down

0 comments on commit eacd395

Please sign in to comment.