This commit is contained in:
11
node_modules/licia/lazyRequire.js
generated
vendored
Normal file
11
node_modules/licia/lazyRequire.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports = function(requireFn) {
|
||||
const cache = {};
|
||||
|
||||
return function(name) {
|
||||
return function() {
|
||||
return cache[name] || (cache[name] = requireFn(name));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user