react
react copied to clipboard
Blocking the event loop spawnSync
To avoid blocking event loop use execSync is best compare to SpawnSync this cause performance, when running multiple concurrent tasks in React build pipeline
Consider replacing spawnSync with spawn to prevent blocking
const sha = execSync('git rev-parse HEAD').slice(0, 8);