Galerie und tage
This commit is contained in:
13
node_modules/optional/optional.js
generated
vendored
Normal file
13
node_modules/optional/optional.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = function(module, options){
|
||||
try{
|
||||
if(module[0] in {".":1}){
|
||||
module = process.cwd() + module.substr(1);
|
||||
}
|
||||
return require(module);
|
||||
}catch(err){
|
||||
if (err.code !== "MODULE_NOT_FOUND" && options && options.rethrow) {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
Reference in New Issue
Block a user