17 lines
267 B
JavaScript
17 lines
267 B
JavaScript
const moduleList = require('../module-list')
|
|
|
|
for (const {
|
|
name,
|
|
load,
|
|
enabled = true,
|
|
private: isPrivate = false
|
|
} of moduleList) {
|
|
if (!enabled) {
|
|
continue
|
|
}
|
|
|
|
Object.defineProperty(exports, name, {
|
|
enumerable: !isPrivate,
|
|
get: load
|
|
})
|
|
}
|