check console

This commit is contained in:
yiminghe 2016-04-28 11:19:13 +08:00
parent 5365d4bbd3
commit 574b402170

View File

@ -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;