Wraps the rendering with browser environment checks and lazy loads the pdfjs-dist code.
I'm hoping this change would allow me to use the library alongside SSR.
The browser checks and lazy loading ideas are taken from https://github.com/vinodnimbalkar/svelte-pdf
closes https://github.com/gtm-nayan/svelte-pdfjs/issues/14
Wraps the rendering with browser environment checks and lazy loads the
pdfjs-dist
code. I'm hoping this change would allow me to use the library alongside SSR. The browser checks and lazy loading ideas are taken from https://github.com/vinodnimbalkar/svelte-pdf