-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnotify v5 not ES5 compliant #389
Comments
Hi @h3llrais3r, Yes, this is a bug. It looks like the webpack config was set up wrong, and the code wasn't getting run through Babel. I'll fix this for the next version. |
Even with the fix though, I don't know if it will compile entirely down to ES5. It should work in relatively old browsers though. Here's the browser list:
|
@hperrin Thanks for feedback. |
@h3llrais3r I just released v5.1.1. This should be compatible with your build process. If not, you can open another issue, and I'll fix it. |
@hperrin I confirm it's ES5 compatible and gulp-uglify does not complain about it anymore. |
Hi, first of all, thanks for this great package.
I'm trying to upgrade from from v4 to v5, and I'm still using ES5 syntax.
I noticed that after upgrading to v5, the iife is no longer available, so I'm using the
PNotify.js
directly from the/core/dist
folder.However, I noticed that this javascript file contains
const
variables, which are not ES5 compliant.Is this as intended? Or can you also provide a file that is plain ES5, like it was before in
/dist/iife
folder?The ES6 syntax breaks the backwards compatibility with older browsers like IE.
Of course, I can transpile myself to ES5 syntax, but I still wanted to share it here, just to know if it was intended or not. 😉
The text was updated successfully, but these errors were encountered: