Closed bfillmer closed 7 years ago
I get the same with npm run build
using react-scripts@1.0.11
.
Sorry about that guys and thank you for your feedback. I'll try a fix tomorrow.
UglifyJS doesn't support ES6, and Create React App and react-scripts haven't switched to Babel-Minify (Babili) yet. So I'd need to transpile even the es/
export. Hopefully early next week I'll publish a fix for you guys. In the meantime, copy-pasting the library like @bfillmer did is the simplest workaround.
When using
redux-data-structures
in a Create React App based system development works fine. However when creating a production build usingyarn build
an UglifyJS error pops up:Looks like an issue with Uglification on the defaults set inside the function definitions.
Interestingly cloning the
redux-data-structures
repository into a sub-directory ofsrc
in the app, building it, and linking directly toes6/index.js
works just fine for both development and production build.