diff --git a/index-with-locales.js b/index-with-locales.js index 0a10493cf8..4672821263 100644 --- a/index-with-locales.js +++ b/index-with-locales.js @@ -1,4 +1,5 @@ const antd = require('./components'); + const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/); antd.locales = {}; diff --git a/index.js b/index.js index 46f497b21a..3cefbe4c06 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ /* eslint no-console:0 */ function camelCase(name) { - return name.charAt(0).toUpperCase() + - name.slice(1).replace(/-(\w)/g, (m, n) => { + return name.charAt(0).toUpperCase() + + name.slice(1).replace(/-(\w)/g, (m, n) => { return n.toUpperCase(); }); }