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

Commit e1d65d9

Browse files
joyeecheungaduh95
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 c61f90d commit e1d65d9

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)