Ghost/core/server/lib/common/index.js
kirrg001 a1393762f6 Lazily require modules in lib/common/index
no issue

- decreases chance of not-loaded modules or circular dependencies
- e.g. the i18n implementation will use the settings-cache and the settings-cache uses lib/common/events
2018-01-08 21:12:16 +01:00

20 lines
285 B
JavaScript

'use strict';
module.exports = {
get i18n() {
return require('./i18n');
},
get events() {
return require('./events');
},
get errors() {
return require('./errors');
},
get logging() {
return require('./logging');
}
};