chore: ensure warn is dev only
This commit is contained in:
parent
c6217b4d46
commit
ff97be15c3
@ -187,12 +187,13 @@ function doWatch(
|
||||
}
|
||||
} else {
|
||||
getter = NOOP
|
||||
warn(
|
||||
`Invalid watch source: `,
|
||||
source,
|
||||
`A watch source can only be a getter/effect function, a ref, ` +
|
||||
`a reactive object, or an array of these types.`
|
||||
)
|
||||
__DEV__ &&
|
||||
warn(
|
||||
`Invalid watch source: `,
|
||||
source,
|
||||
`A watch source can only be a getter/effect function, a ref, ` +
|
||||
`a reactive object, or an array of these types.`
|
||||
)
|
||||
}
|
||||
|
||||
if (cb && deep) {
|
||||
|
Loading…
Reference in New Issue
Block a user