I'm using Node.js CLI to test part of my app, but in some of those tests its loading modules that it doesn't need to load.
If I'm calling the program with node -r esm
and using import
statements to import the modules, is it possible to do some form of lazy loading so that I don't need to wait so long for Node.js to resolve unnecessary imports?
Most of my code does not use require
to load modules.