File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ function camelCase(name) {
9
9
}
10
10
11
11
// Just import style for https://github.com/ant-design/ant-design/issues/3745
12
- const req = require . context ( './components' , true , / ^ \. \/ [ ^ _ ] [ \w - ] + \/ s t y l e \/ i n d e x \. j s ? $ / ) ;
12
+ const req = require . context ( './components' , true , / ^ \. \/ [ ^ _ ] [ \w - ] + \/ s t y l e \/ i n d e x \. t s x ? $ / ) ;
13
13
14
14
req . keys ( ) . forEach ( mod => {
15
15
let v = req ( mod ) ;
16
16
if ( v && v . default ) {
17
17
v = v . default ;
18
18
}
19
- const match = mod . match ( / ^ \. \/ ( [ ^ _ ] [ \w - ] + ) \/ i n d e x \. j s ? $ / ) ;
19
+ const match = mod . match ( / ^ \. \/ ( [ ^ _ ] [ \w - ] + ) \/ i n d e x \. t s x ? $ / ) ;
20
20
if ( match && match [ 1 ] ) {
21
21
if ( match [ 1 ] === 'message' || match [ 1 ] === 'notification' ) {
22
22
// message & notification should not be capitalized
You can’t perform that action at this time.
0 commit comments