diff --git a/src/components/utils/warn.ts b/src/components/utils/warn.ts index 2d1b9b6e4a..a86b0bbee7 100644 --- a/src/components/utils/warn.ts +++ b/src/components/utils/warn.ts @@ -1,7 +1,7 @@ const didWarn = new Map(); export function warnOnce(msg: string) { - if (!msg || didWarn.has(msg)) { + if (!msg || didWarn.has(msg) || process.env.NODE_ENV === 'production') { return; }