enclose-io/compiler

View on GitHub
current/benchmark/fixtures/require-cachable.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

const { internalBinding } = require('internal/test/binding');
const {
  moduleCategories: { canBeRequired }
} = internalBinding('native_module');

for (const key of canBeRequired) {
  require(key);
}