mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
fix dist
This commit is contained in:
parent
9a0d751f94
commit
9d59add2fe
4
index.js
4
index.js
@ -8,11 +8,11 @@ function camelCase(name) {
|
||||
});
|
||||
}
|
||||
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)?index\.jsx?$/);
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)?index\.tsx?$/);
|
||||
|
||||
req.keys().forEach((mod) => {
|
||||
const v = req(mod);
|
||||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.jsx?$/);
|
||||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/);
|
||||
if (match && match[1]) {
|
||||
if (match[1] === 'message' || match[1] === 'notification') {
|
||||
// message & notification should not be capitalized
|
||||
|
Loading…
Reference in New Issue
Block a user