sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 514 forks source link

pnotify breaks in IE11 when imported via Webpack #360

Open kouts opened 5 years ago

kouts commented 5 years ago

I'm using webpack@4.32.2 with the following import statements

import PNotify from 'pnotify/dist/es/PNotify.js';
import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons.js';

to import pnotify into my build This works fine in Chrome and Firefox but breaks in IE11. There's also no error logged in the console whatsoever.

nmocruz commented 4 years ago

you are using dist/es/ that are e6+ modules, you maybe needs to or use Vanilla JS (ES5), or dist/iife/ or transpile to es5 using