Skip to content

Commit

Permalink
fix: treeshaking error
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Dec 27, 2023
1 parent d1f001b commit 4d04f5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ function doWatch(
}
}

const extendOptions: BaseWatchOptions = { handleWarn: warn }
const extendOptions: BaseWatchOptions = {}

if (__DEV__) extendOptions.handleWarn = warn

let ssrCleanup: (() => void)[] | undefined
if (__SSR__ && isInSSRComponentSetup) {
Expand Down

0 comments on commit 4d04f5e

Please sign in to comment.