ericnograles / browser-image-resizer

A tiny browser-based library to downscale and/or resize images using canvas
MIT License
98 stars 42 forks source link

Fix IE11 Syntax Error #20

Closed Watercycle closed 4 years ago

Watercycle commented 4 years ago

This PR makes it so that babel-loader transpiles the imported ExifReader module and explicitly specifies IE11 as a target, addressing #16.

For some reason, specifying the presets in .babelrc did not work, so the presets were included into the Webpack configuration per the suggestion of a few GitHub issues. I originally thought bumping ExifReader would fix things, but that wasn't enough since it is also using other IE11 incompatible things (e.g. arrow functions).

This was tested in Chrome & IE11.