Skip to content

Commit

Permalink
feat: support node19 (vercel#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 18, 2023
1 parent edfdadb commit e388983
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 e388983

Please sign in to comment.