Anyone using Vite? Can you get rid of libphonenumber-js in your final build if you do not use @IsPhoneNumber? #2223
Unanswered
laukaichung
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the dependencies :
I do not use
@IsPhoneNumber
at all. I read some old posts that the library has become tree-shakable. But my final build still contains libphonenumber-js (Rendered 207kb). Does anyone manage to shake it out?My example viteconfig.ts:
Beta Was this translation helpful? Give feedback.
All reactions