|
|
@ -14,7 +14,12 @@ req.keys().forEach((mod) => { |
|
|
|
const v = req(mod); |
|
|
|
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.jsx?$/); |
|
|
|
if (match && match[1]) { |
|
|
|
exports[camelCase(match[1])] = v; |
|
|
|
if (match[1] === 'message' || match[1] === 'notification') { |
|
|
|
// message & notification should not be capitalized
|
|
|
|
exports[match[1]] = v; |
|
|
|
} else { |
|
|
|
exports[camelCase(match[1])] = v; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|