sciactive / pnotify

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

Webpack and ES5 support #358

Open TheMY3 opened 5 years ago

TheMY3 commented 5 years ago

Hello, I got same problem as here: https://github.com/sciactive/pnotify/issues/350

Now I use v3.2.1 and my file look like this:

import * as PNotify from 'pnotify';

new PNotify({type: 'notice', text: 'text'});

When I migrate to v4 - it's works fine with ES6 modules, but I want to use ES5 scripts and can't import them, do you have solution or any ideas for webpack?