module: be lazy when creating CJS facades
This should remove the penalty for loading CJS that is never imported.
Aside: We could probably do more low hanging optimizations if we could reuse facades.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
module