Does not work in IE11
darren-dev opened this issue · comments
As long as webpack converted it to ES5 it should work as expected in IE. It's just simple JS and shouldn't need any polyfil. If you use the 0.1.0
release you don't even need webpack to convert it as it's vanilla JS.
I doubt webpack is at fault - all other libs work perfectly and I have about 6 polyfils. Also, running it outside of webpack is not preferable.
Usually webpack babel config does not transpile node_modules files. So I think this might be the cause of this issue
Yes. This is causing issue for UglifyJS too.
From our build log:
ERROR in application-a35c6ff9c22f1891e0d4.js from UglifyJs
Unexpected token: keyword (const) [./node_modules/prettysize/index.js:8,0][application-a35c6ff9c22f1891e0d4.js:57645,0]
@rhys-vdw Yes, no need for es6 for this library and my pull request is very reasonable. The only reason that is not be merged yet should be the maintainers are too busy with saving the world.
As long as webpack converted it to ES5 it should work as expected in IE. It's just simple JS and shouldn't need any polyfil. If you use the
0.1.0
release you don't even need webpack to convert it as it's vanilla JS.
@davglass So the library was upgraded to ES6 so that everyone now has to convert it back to ES5 or use a polyfill?
Can you please explain the rationale behind this decision?
Or maybe @AdrieanKhisbe can shed some more light on why this was ES6-ified in the first place
Merged the ES5 version and published in prettysize@2.0.0