diff --git a/index-with-locales.js b/index-with-locales.js index a1d61deb0..86f709208 100644 --- a/index-with-locales.js +++ b/index-with-locales.js @@ -1,5 +1,5 @@ const antd = require('./components') -const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.js$/) +const req = require.context('./components', true, /^\.\/locale-provider\/(?!__tests__).+_.+\.js$/) antd.locales = {}