fix: css error #3069
parent
5696b19081
commit
41a0251a5b
4
index.js
4
index.js
|
@ -9,14 +9,14 @@ function camelCase(name) {
|
|||
}
|
||||
|
||||
// Just import style for https://github.com/ant-design/ant-design/issues/3745
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.js?$/);
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);
|
||||
|
||||
req.keys().forEach(mod => {
|
||||
let v = req(mod);
|
||||
if (v && v.default) {
|
||||
v = v.default;
|
||||
}
|
||||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
|
||||
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