NodeJS process does ~300 units of energy impact

When I run my webpack build, my macbook pro 14 with Apple silicon, it starts to heat up, and dries out the battery. Does anybody know how can I debug/fix it?