mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix dist
This commit is contained in:
parent
9d59add2fe
commit
f844bc32ee
5
index.js
5
index.js
@ -11,7 +11,10 @@ function camelCase(name) {
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)?index\.tsx?$/);
|
||||
|
||||
req.keys().forEach((mod) => {
|
||||
const v = req(mod);
|
||||
let v = req(mod);
|
||||
if (v && v.default) {
|
||||
v = v.default;
|
||||
}
|
||||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/);
|
||||
if (match && match[1]) {
|
||||
if (match[1] === 'message' || match[1] === 'notification') {
|
||||
|
Loading…
Reference in New Issue
Block a user