validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

question: readme bundle size reduction clarification?

Open MovingGifts opened this issue 4 years ago • 1 comments

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?

MovingGifts avatar Mar 29 '20 23:03 MovingGifts

I'm confused about this as well...