next.js
ef3c6490 - start performance profiling after node.js version is checked (#59028)

Commit
2 years ago
start performance profiling after node.js version is checked (#59028) Providing better feedback loop for next bindary. Some users with old node.js version are seeing `performance` is not defined in #57385, we should check the version first. For compilation, `performace.mark` will also be compiled after those imports since they're hoisted as ESM. This PR moves performance profiling after the `--help` and `--version` processures and node.js version check. So users can see the "upgrade node.js" hint if the node.js version is too old instead of "performance is not defined"
Author
Parents
Loading