Closed vincentdh closed 4 years ago
This issue is related to issue #75 and can close it
Would be nicer if you were able to pass an instance of Sweetalert in case you want to use newer versions of swal. Something like:
import swal from 'sweetalert2';
import VueSweetAlert2 from 'vue-sweetalert2';
import Vue from 'vue';
Vue.use(VueSweetAlert2, swal)
This library is just a wrapper for easy use. She always uses the latest major version. V3 just upgraded sweetalert2 to version 9.
Your option negates the meaning of using this library. It will be easier to use sweetalert2 directly, simply adding the library to the components themselves.
But thanks for the idea, maybe I just haven’t understood all its advantages.
Some breaking changes have been introduced in v9.x of sweetalert2.
I suggest to create a v3.x of vue-sweetalert2 to update the dependency and not breaking projects that are using version 2.x of vue-sweetalert2.