mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
check NODE_ENV
This commit is contained in:
parent
9b4a159d09
commit
08f956eb21
6
index.js
6
index.js
@ -18,9 +18,11 @@ const antd = {
|
||||
Card, LocaleProvider, Transfer, Cascader,
|
||||
};
|
||||
|
||||
if (typeof console !== 'undefined' && console.warn) {
|
||||
console.warn(`you are using prebuild antd,
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
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