I am using Vue for my website, and I cannot get this polyfill to work.
When using the require/register method in the Readme, Edge will complain with the following error (On localhost):
An SSL certificate error occurred when fetching the script.
Which is strange, because the website works fine. The certificate is self-signed, but it is accepted.
When directly importing the files like this:
import 'avif.js/avif.js';
import 'avif.js/avif-sw.js';
Nothing happens. Safari on iOS doesn't seem to do anything in the above scenarios. I cannot debug on desktop Safari, because I haven no more mac OS devices.
Not that it's of much value, but Firefox and Chrome both don't work. On Firefox it's because of the ServiceWorker being unsupported, I believe that this is a known issue.
Does anyone know how to get this working in Vue? I would love AVIF support in browsers which do not support it!
I am using Vue for my website, and I cannot get this polyfill to work.
When using the require/register method in the Readme, Edge will complain with the following error (On localhost):
When directly importing the files like this:
Nothing happens. Safari on iOS doesn't seem to do anything in the above scenarios. I cannot debug on desktop Safari, because I haven no more mac OS devices.
Not that it's of much value, but Firefox and Chrome both don't work. On Firefox it's because of the ServiceWorker being unsupported, I believe that this is a known issue.
Does anyone know how to get this working in Vue? I would love AVIF support in browsers which do not support it!