mirror of
https://github.com/home-assistant/frontend.git
synced 2026-08-13 00:22:28 +01:00
gulpfile.js set process.env.UV_THREADPOOL_SIZE, but gulp's CLI loads the gulpfile through liftoff, which does async fs work first. libuv has already sized its threadpool to the default 4 by then, so the assignment never took effect. Measured through the gulp CLI, effective threadpool size is 3.4 both with and without the line, and only reaches 6.9 when the variable comes from the environment. Hoisting it earlier cannot fix it either, since the pool is sized before any line of gulpfile.js runs, and setting it for real measurably changes nothing. Remove it rather than plumb the variable through the build.
2 lines
41 B
JavaScript
2 lines
41 B
JavaScript
import "./build-scripts/gulp/index.mjs";
|