mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
Remove babel-plugin-add-module-exports (#8888)
This commit is contained in:
@@ -5,7 +5,7 @@ antd.locales = {};
|
||||
|
||||
req.keys().forEach((mod) => {
|
||||
const match = mod.match(/\/([^/]+).tsx$/);
|
||||
antd.locales[match[1]] = req(mod);
|
||||
antd.locales[match[1]] = req(mod).default;
|
||||
});
|
||||
|
||||
module.exports = antd;
|
||||
|
||||
Reference in New Issue
Block a user