Commit
make Node 20.6.0 auto register _really_ work
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function canRegisterLoader () { | ||
const [major, minor] = process.versions.node | ||
.split('.') | ||
.map((m) => parseInt(m, 10)) | ||
|
||
return major > 20 || (major === 20 && minor >= 6) | ||
} | ||
|
||
exports.canRegisterLoader = canRegisterLoader |