/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
packages/modules/stubs.js
12 строк
367 B
Ben Newman
Stop trapping exceptions thrown by require("meteor-node-stubs").
07 фев 2017, 18:45
07 фев 2017, 18:45
f8db29a
Код
Авторство
О чём код?
var haveStubs = false; try { require.resolve("meteor-node-stubs"); haveStubs = true; } catch (noStubs) {} if (haveStubs) { // When meteor-node-stubs is installed in the application's root // node_modules directory, requiring it here installs aliases for stubs // for all Node built-in modules, such as fs, util, and http. require("meteor-node-stubs"); }