Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): upgrade cross-spawn to 7.0.3 (#45839)
The PR upgrades `cross-spawn` to `7.0.3`. The precompiled has also been updated. The `cross-spawn` version is still pinned after the PR. ----- So I have been working on improving Next.js build performance recently. One thing that catches my eye is this: <img width="1751" alt="image" src="https://user-images.githubusercontent.com/40715044/218383194-5b24c737-0d97-4434-bbbf-ba5752072882.png"> The flamegraph shows the `semver` inside `cross-spawn` is one of the hottest functions. Then I take a look at the `cross-spawn`, turns out that `cross-spawn` has `semver` already removed: moxystudio/node-cross-spawn#125 According to the CHANGELOG of `cross-spawn`, the only breaking change is that `cross-spawn@7` is dropping `Node.js < 8` support. So I assume it would be fine to upgrade `cross-spawn` to the latest version `7.0.3`, thus eliminating the extra performance overhead introduced by `semver`. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information