Skip to content

Commit

Permalink
fix: minimum Node version in warning for module.register() (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov authored Jun 17, 2024
1 parent 97a23ee commit cb27d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esm/api/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const register: Register = (
options,
) => {
if (!module.register) {
throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.9 or v20.6 and above.`);
throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);
}

if (!cjsInteropApplied) {
Expand Down

0 comments on commit cb27d4d

Please sign in to comment.