jantinnerezo / livewire-alert

SweetAlert2 wrapper for Livewire
https://livewire-alert.jantinnerezo.com
MIT License
682 stars 73 forks source link

Defer script loading for flashAlert() #138

Closed jigar-dhulla closed 7 months ago

jigar-dhulla commented 7 months ago

As Swal is external dependency, when Swal is loaded via vite bundler, it is deferred. Hence when using flash feature, we get error Uncaught (in promise) ReferenceError: Swal is not defined. This is because script inside flash is not deferred, adding type="module" to the Githubissues.

  • Githubissues is a development platform for aggregating issues.