pladaria / reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)
MIT License
1.22k stars 197 forks source link

Issue on IE11 #90

Closed nkov closed 5 years ago

nkov commented 5 years ago

Having an issue when using this lib on production IE11 with webpack and babel, the class keyword isn't transpiled and throws a syntax error. Was able to fix this by forking the repo, removing the module specifier in package.json, and running the lib through babel.

Here you can see a screenshot from the production bundle with the offending classes highlighted, which corresponds to the module code in the main entry point.

nkov commented 5 years ago

Sorry, didn't realize I was not on the latest version. Seems fine in 4.1.9.