You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using class-transformer-validator results in google-libphonenumber being included in the webpack bundle (even though tree shaking is enabled and no phone number validators are being used).
I use version 0.12.2. I think the problem is that class-transformer-validator is importing the whole class-validator package. When I leave class-transformer-validator out of my project, the bundle doesn't include google-libphonenumber and is significantly smaller.
Using
class-transformer-validator
results ingoogle-libphonenumber
being included in the webpack bundle (even though tree shaking is enabled and no phone number validators are being used).This was fixed in
class-validator
itself, see:I'm wondering if there is an "easy" fix for this package?
The text was updated successfully, but these errors were encountered: