We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5696b19 commit 41a0251Copy full SHA for 41a0251
index.js
@@ -9,14 +9,14 @@ function camelCase(name) {
9
}
10
11
// Just import style for https://github.com/ant-design/ant-design/issues/3745
12
-const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.js?$/);
+const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);
13
14
req.keys().forEach(mod => {
15
let v = req(mod);
16
if (v && v.default) {
17
v = v.default;
18
19
- const match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
+ const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/);
20
if (match && match[1]) {
21
if (match[1] === 'message' || match[1] === 'notification') {
22
// message & notification should not be capitalized
0 commit comments