Skip to content

Commit b57405c

Browse files
committed
fix: treeshaking error
1 parent 4d04f5e commit b57405c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/baseWatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function baseWatch(
123123
onTrigger,
124124
scheduler = DEFAULT_SCHEDULER,
125125
handleError: handleError = DEFAULT_HANDLE_ERROR,
126-
handleWarn: handleWarn = warn,
126+
handleWarn: handleWarn = __DEV__ ? warn : NOOP,
127127
}: BaseWatchOptions = EMPTY_OBJ,
128128
): WatchInstance {
129129
const warnInvalidSource = (s: unknown) => {

0 commit comments

Comments
 (0)