Commit 47c9491
committed
fix(sourceWorker): inherit execArgv so tsx loader reaches micro-workers
Worker threads spawned via new Worker(__filename) do not inherit
process.execArgv, causing them to crash when the parent was started
with --import tsx. Passing execArgv: process.execArgv fixes the
crash-respawn loop seen with the default npm start script.1 parent 4f38f9a commit 47c9491
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments