Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
feat: Support node19
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Feb 6, 2023
1 parent e3ac490 commit 11d215a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prelude/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,11 @@ function payloadFileSync(pointer) {
im = require('internal/module');
makeRequireFunction = im.makeRequireFunction;
} else {
im = require('internal/modules/cjs/helpers');
if (NODE_VERSION_MAJOR <= 18) {
im = require('internal/modules/cjs/helpers');
} else {
im = require('internal/modules/helpers');
}
makeRequireFunction = im.makeRequireFunction;
// TODO esm modules along with cjs
}
Expand Down

0 comments on commit 11d215a

Please sign in to comment.