mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
check console
This commit is contained in:
parent
5365d4bbd3
commit
574b402170
4
index.js
4
index.js
@ -17,7 +17,9 @@ const antd = {
|
||||
Card, LocaleProvider, Transfer, Cascader,
|
||||
};
|
||||
|
||||
console.warn(`you are using prebuild antd,
|
||||
if (typeof console !== 'undefined' && console.warn) {
|
||||
console.warn(`you are using prebuild antd,
|
||||
please use https://github.com/ant-design/babel-plugin-antd to reduce app bundle size.`);
|
||||
}
|
||||
|
||||
export default antd;
|
||||
|
Loading…
Reference in New Issue
Block a user