williaster / data-ui

A collection of data-rich UI components 📈
https://williaster.github.io/data-ui/
MIT License
546 stars 69 forks source link

Code breaks in production when component names are mangled #168

Closed amiramitai closed 5 years ago

amiramitai commented 5 years ago

isSeries, for example, checks the child's component name, but when building for production, it breaks.

The default behavior of the 'build' command in create-react-app is to mangle the code that includes the components names.

EDIT: No, my bad - I had that because I used AnimatedBarSeries directly instead of BarSeries. This is what you get for not following the docs.