latelierco / vue-application-insights

MIT License
26 stars 9 forks source link

Add basic support for Vue 3 #24

Open ruffythepirate opened 11 months ago

ruffythepirate commented 11 months ago

Because Vue 3 now sends in an object and not a function when setting up a plugin, there is an error thrown from using the .prototype call in the install function. This PR identifies if Vue 3 is being used, and if that is the case it uses Vue.provide('appInsights'... to make appInsights available to other parts of the application.