module: be lazy when creating CJS facades · nodejs/node@da40417 · GitHub
Skip to content

Commit da40417

Browse files
bmeckgibfahn
authored andcommitted
module: be lazy when creating CJS facades
This should remove the penalty for loading CJS that is never imported. PR-URL: #17153 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a2c82c3 commit da40417

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

lib/module.js

Lines changed: 11 additions & 5 deletions

0 commit comments

Comments
 (0)