nicolasbeauvais / vue-social-sharing

A renderless Vue.js component for sharing links to social networks, compatible with SSR
https://nicolasbeauvais.github.io/vue-social-sharing/
MIT License
1.4k stars 197 forks source link

Allow to run with vue/compat #326

Closed ankurk91 closed 2 years ago

ankurk91 commented 2 years ago

Hi, @nicolasbeauvais

Most of developers would be using @vue/compat build to migrate their codebase to vue 3. But the "next" branch is not working with @vue/compat, the default slot does not render at-all.

I have added the compact config to tell the compiler that this package is using vue 3 syntax, and compiler wont patch this component for vue 3.

https://v3-migration.vuejs.org/migration-build.html#per-component-config

Please merge and release new a version. + Would you accept a PR to generate un-minified file in dist folder along with .min.js ?

ankurk91 commented 2 years ago

Until this PR gets merged, one can do

import VueSocialSharing from 'vue-social-sharing'

VueSocialSharing.compatConfig = { MODE : 3 }