validator.js
validator.js copied to clipboard
question: readme bundle size reduction clarification?
Hello in the readme
it mentions both ways to reduce the bundle size:
Or, import only a subset of the library:
import isEmail from 'validator/lib/isEmail';
Tree-shakeable ES imports
import isEmail from 'validator/es/lib/isEmail';
How do these differ? Does one of them make a smaller bundle size than the other?
I'm confused about this as well...