Skip to content

Commit 41a0251

Browse files
committed
fix: css error #3069
1 parent 5696b19 commit 41a0251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ function camelCase(name) {
99
}
1010

1111
// Just import style for https://github.com/ant-design/ant-design/issues/3745
12-
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.js?$/);
12+
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);
1313

1414
req.keys().forEach(mod => {
1515
let v = req(mod);
1616
if (v && v.default) {
1717
v = v.default;
1818
}
19-
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
19+
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/);
2020
if (match && match[1]) {
2121
if (match[1] === 'message' || match[1] === 'notification') {
2222
// message & notification should not be capitalized

0 commit comments

Comments
 (0)