Skip to content

Commit adf889d

Browse files
committed
esm: re-add esm loading embedder option
1 parent 9a321dd commit adf889d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)