Skip to content

Commit fc31c6a

Browse files
committed
esm: re-add esm loading embedder option
1 parent 77b0595 commit fc31c6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/internal/process/pre_execution.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ function initializeCJSLoader() {
688688
}
689689

690690
function initializeESMLoader(isLoaderWorker) {
691+
if (getEmbedderOptions().shouldNotRegisterESMLoader) return;
692+
691693
const { initializeESM } = require('internal/modules/esm/utils');
692694
initializeESM(isLoaderWorker);
693695

0 commit comments

Comments
 (0)