File: /home/frenchy/www/french-american.org/current/node_modules/snyk/dist/lib/hotload.js
"use strict";
module.exports = hotload;
const path = require('path');
// this will speed up the module load time, only loading the CLI commands
// as needed by the user, and totally avoiding if the module is being required
// into a user project
function hotload(dir) {
return function (name) {
let module = null;
return function (...args) {
if (module === null) {
module = require(path.relative(__dirname, path.resolve(dir, name)));
}
return module(...args);
};
};
}
//# sourceMappingURL=hotload.js.map