fix: node v18.12 startup (#1026)

Fixes https://github.com/nexe/nexe/issues/1019
This commit is contained in:
bruce-one
2022-12-20 01:15:24 +11:00
committed by GitHub
parent 1eeac1b538
commit a746e00379
+2
View File
@@ -29,6 +29,8 @@ export default async function main(compiler: NexeCompiler, next: () => Promise<v
if (version.startsWith('4.')) {
bootFile = 'src/node.js'
} else if (semverGt(version, '18.11.99')) {
bootFile = 'lib/internal/process/pre_execution.js'
} else if (semverGt(version, '11.99')) {
bootFile = 'lib/internal/bootstrap/pre_execution.js'
} else if (semverGt(version, '9.10.1')) {