We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460cc62 commit a5fdedbCopy full SHA for a5fdedb
lib/internal/bootstrap/pre_execution.js
@@ -385,7 +385,7 @@ function initializeFrozenIntrinsics() {
385
function loadPreloadModules() {
386
// For user code, we preload modules if `-r` is passed
387
const preloadModules = getOptionValue('--require');
388
- if (preloadModules) {
+ if (preloadModules && preloadModules.length > 0) {
389
const {
390
_preloadModules
391
} = require('internal/modules/cjs/loader');
0 commit comments