Watch function does not work after packaging
Version
3.2.25
Reproduction link
https://github.com/HassaanAkbar/vue-zoomable/
Steps to reproduce
- Clone the repository.
- Run
npm run dev
. Demo works fine. - Run
npm run build
andnpm pack
. - Use the packed library in a new project (example usage: src/demos/Demo1.vue). Watcher does not work.
What is expected?
Watchers should keep working in a packaged library.
What is actually happening?
Watchers stop working.
I am working on a zoom and panning library. It uses watch function on a computed property and updates CSS styles on change. Watcher reference: https://github.com/HassaanAkbar/vue-zoomable/blob/main/src/components/VueZoomable.vue#L90