diff options
Diffstat (limited to 'node_modules/liftoff/lib/silent_require.js')
-rw-r--r-- | node_modules/liftoff/lib/silent_require.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/liftoff/lib/silent_require.js b/node_modules/liftoff/lib/silent_require.js new file mode 100644 index 000000000..7b4dfe4e5 --- /dev/null +++ b/node_modules/liftoff/lib/silent_require.js @@ -0,0 +1,5 @@ +module.exports = function (path) { + try { + return require(path); + } catch (e) {} +}; |