Class-validator: question: excluding google-libphonenumber

Created on 21 Nov 2019  路  7Comments  路  Source: typestack/class-validator

Google libphonumber is a large depdendency of the class-valdiator package (450KB vs 50KB of class-valdiator). Is there an option to use it optionally ?

duplicate question

All 7 comments

i dont think you can use it optionally or may be i am wrong, perhaps @vlapo can tell you more

Sorry there is such option.

Does this library support just using the modules you want? Example:

import length from 'class-validator/length

No this library do not support tree shaking and modules yet.

Is someone working on this issue?

Edit:
Found this https://github.com/typestack/class-validator/pull/258

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pietrobelluno picture pietrobelluno  路  3Comments

binaryangel-noa picture binaryangel-noa  路  3Comments

btd1337 picture btd1337  路  5Comments

isergey picture isergey  路  3Comments

TomMarius picture TomMarius  路  3Comments