module: load ESM helpers eagerly in the snapshot · nodejs/node@a53b51d · GitHub
Skip to content

Commit a53b51d

Browse files
joyeecheungsxa
authored andcommitted
module: load ESM helpers eagerly in the snapshot
Since the ESM loader is captured in the snapshot now, there's no need to lazy load the helpers. Load them eagerly to capture them into the snapshot. This also reduces the noise coming out of --print-bytecode since we no longer compile the helper functions at run time. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: #63550 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
1 parent 3e6b4da commit a53b51d

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

lib/internal/modules/esm/loader.js

Lines changed: 4 additions & 24 deletions

test/parallel/test-bootstrap-modules.js

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)