diff --git a/lib/esm-utils.js b/lib/esm-utils.js
index <HASH>..<HASH> 100644
--- a/lib/esm-utils.js
+++ b/lib/esm-utils.js
@@ -34,7 +34,9 @@ const hasStableEsmImplementation = (() => {
   const [major, minor] = process.version.split('.');
   // ESM is stable from v12.22.0 onward
   // https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules
-  return parseInt(major.slice(1), 10) > 12 || parseInt(minor, 10) >= 22;
+  const majorNumber = parseInt(major.slice(1), 10);
+  const minorNumber = parseInt(minor, 10);
+  return majorNumber > 12 || (majorNumber === 12 && minorNumber >= 22);
 })();
 
 exports.requireOrImport = hasStableEsmImplementation
ESM: proper version check in hasStableEsmImplementation (#<I>)