diff --git a/packages/lib/src/signal.ts b/packages/lib/src/signal.ts index b82a79e..202730b 100644 --- a/packages/lib/src/signal.ts +++ b/packages/lib/src/signal.ts @@ -114,7 +114,7 @@ class WatchEffect { this.getter = getter this.subs = new Map() this.isRunning = false - + if (__DEV__) { this[$HMR_ACCEPT] = { provide: () => this, inject: (prev) => { @@ -124,6 +124,7 @@ class WatchEffect { destroy: () => { this.stop() }, + } } }