DanFMoore / react-validatorjs-strategy

Strategy for using validatorjs with react-validation-mixin
The Unlicense
10 stars 5 forks source link

Add browser path to package.json #1

Closed damusnet closed 8 years ago

damusnet commented 8 years ago

For my build process I use Gulp/Browserify/Babelify and everything works fine in development. However, for production, I add UglifyJS to the mix and it chokes on ./src/strategy.js (you can see for yourself here).

Adding the browser path to package.json allows it to use the compiled version instead and everything works fine. Hope this works for you too.

damusnet commented 8 years ago

:sparkles: Thanks a lot! :sparkles: