diff --git a/components/icon/index.ts b/components/icon/index.ts index 7cc36928c5..d985d56650 100755 --- a/components/icon/index.ts +++ b/components/icon/index.ts @@ -1,7 +1,9 @@ import warning from '../_util/warning'; const Icon: React.FC = () => { - warning(false, 'Icon', 'Empty Icon'); + if (process.env.NODE_ENV !== 'production') { + warning(false, 'Icon', 'Empty Icon'); + } return null; };