pladaria / reconnecting-websocket

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

Failed to minify the code #71

Closed ftier-tech closed 6 years ago

ftier-tech commented 6 years ago

First, let me say what a great library. It has been a blessing to use it. Unfortunately, I had to upgrade to 4.0.0-rc5 from 3.2.2 that solved an issue, but when doing a react-scripts build, I get an error as follows:
Creating an optimized production build... Failed to compile.

Failed to minify the code from this file:

./node_modules/reconnecting-websocket/dist/reconnecting-websocket.mjs:1 

I've encountered this once before with another library and I just had to import an ES5 compliant version. Was wondering what I need to do for this library.

Thank you!

pladaria commented 6 years ago

Next version will target ES5 so you shouldn't have these problems