poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Transform to ES5 #194

Closed mhemrg closed 6 years ago

mhemrg commented 6 years ago

Closes #177 Related to https://github.com/Slynova-Org/charmap/pull/4 and https://github.com/poppinss/haye/pull/3

thetutlage commented 6 years ago

Can you share some steps on how do I verify that it is compatible with ES5?

mhemrg commented 6 years ago

In order to transpile indicative to ES5, we have to have transpiled dependencies. I've decreased the version of striptags to 2 because it targets ES5. I've upgraded @slynova/slug and haye too because they're compatible with ES5 in they're latest versions.

We're using uglify-es, but if we use uglifyjs it will break. uglifyjs requires ES5 compatibility.

7ammer commented 6 years ago

This saved my bacon. Thanks!