Closed mbcbus closed 9 months ago
Hi, this plugin is for rollup, but I can't help with issues related to rollup itself, only the actions this plugin performs. Does this problem exhibit when you do not use this specific plugin?
FWIW, I would suggest using Mitt or some other solution for passing messages between a window-level script and Vue components rather than calling into private members of app
.
I have a use case where I'm trying to compile a single file where a window level function can update data in a rendered Vue app. While I am able to get this working using the defineExposed() function in Vue3/Composition API locally via
npm run dev
, after I compile withnpm run build
the same working function now returns an error:It appears that the defineExposed() function is not compatible with the rollup, but I'm not super familiar with vue or this plugin so I'm having trouble trying to troubleshoot.
Basic test code is as follows:
Index.html
main.ts
App.vue