Closed mspanish closed 6 years ago
Hi @mspanish. I think to import it in a module, you want to import the ES build, which is:
import PNotify from 'pnotify/dist/es/PNotify';
To import it in a Svelte component, I think you'd use:
import PNotify from 'pnotify/src/PNotify.html';
awesome thank you so much - way better than the other thing I was looking at - much prettier!
Hey very cool you are already using Svelte - but do you know how I can import & use this in a codesandbox.io project that uses Svelte? I tried adding it as a dependency and using
import { PNotify } from 'pnotify';
but PNotify didn't work after that.My sandbox is here
Any ideas would be really great!