1 parent 3b40365 commit b53f1beCopy full SHA for b53f1be
1 file changed
src/esm.ts
@@ -54,10 +54,10 @@ export function createEsmHooks(tsNodeService: Service) {
54
});
55
56
// The hooks API changed in node version X so we need to check for backwards compatibility.
57
- // TODO: When the new API is backported to v12, v14, v16, update these version checks accordingly.
+ // TODO: When the new API is backported to v12, v14, update these version checks accordingly.
58
const newHooksAPI =
59
versionGteLt(process.versions.node, '17.0.0') ||
60
- versionGteLt(process.versions.node, '16.999.999', '17.0.0') ||
+ versionGteLt(process.versions.node, '16.20.0') ||
61
versionGteLt(process.versions.node, '14.999.999', '15.0.0') ||
62
versionGteLt(process.versions.node, '12.999.999', '13.0.0');
63
0 commit comments