Skip to content

Commit

Permalink
fix(cordis): update internal api usage for node latest
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jun 25, 2024
1 parent 6d7cfe6 commit 624d27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cordis/src/worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function start(options: Options) {
})
if (process.execArgv.includes('--expose-internals')) {
const require = createRequire(import.meta.url)
ctx.loader.internal = require('internal/process/esm_loader').esmLoader
ctx.loader.internal = require('internal/modules/esm/loader').getOrInitializeCascadedLoader()
}
if (options.logger) ctx.plugin(logger, options.logger)
if (options.daemon) ctx.plugin(daemon, options.daemon)
Expand Down

0 comments on commit 624d27f

Please sign in to comment.