Keep bundle size warning out of server side

pull/4708/head
偏右 8 years ago committed by GitHub
parent edf9ebb0ef
commit 0dfdace923

@ -1,7 +1,7 @@
/* eslint no-console:0 */
// this file is not used if use https://github.com/ant-design/babel-plugin-import
if (process.env.NODE_ENV !== 'production') {
if (typeof console !== 'undefined' && console.warn) {
if (typeof console !== 'undefined' && console.warn && typeof window !== 'undefined') {
console.warn(`You are using a whole package of antd,
please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.`);
}

Loading…
Cancel
Save