mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-09 02:23:44 +08:00
fix #1968
This commit is contained in:
parent
5e89806520
commit
0283819565
5
index.js
5
index.js
@ -14,8 +14,13 @@ req.keys().forEach((mod) => {
|
|||||||
const v = req(mod);
|
const v = req(mod);
|
||||||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.jsx?$/);
|
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.jsx?$/);
|
||||||
if (match && match[1]) {
|
if (match && match[1]) {
|
||||||
|
if (match[1] === 'message' || match[1] === 'notification') {
|
||||||
|
// message & notification should not be capitalized
|
||||||
|
exports[match[1]] = v;
|
||||||
|
} else {
|
||||||
exports[camelCase(match[1])] = v;
|
exports[camelCase(match[1])] = v;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
|
Loading…
Reference in New Issue
Block a user