mirror of https://github.com/vuejs/core.git
chore: return early in warn() in prod
This commit is contained in:
parent
3e223f1bb0
commit
d33292dd47
|
@ -31,6 +31,8 @@ export function popWarningContext() {
|
|||
}
|
||||
|
||||
export function warn(msg: string, ...args: any[]) {
|
||||
if (!__DEV__) return
|
||||
|
||||
// avoid props formatting or warn handler tracking deps that might be mutated
|
||||
// during patch, leading to infinite recursion.
|
||||
pauseTracking()
|
||||
|
|
Loading…
Reference in New Issue