Do I install the package as a dev dependency? #200
Answered
by
bengry
TheMikeyRoss
asked this question in
Q&A
-
Hello everyone, I have size-anxiety and I try to avoid installing any dependency in my UI kit library. Do I install |
Beta Was this translation helpful? Give feedback.
Answered by
bengry
Oct 4, 2023
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheMikeyRoss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
require
/import
something and that's used by part of the bundled code, it's gonna get bundled - regardless of where it sits in thepackage.json
.dependencies
). Since the code is executed at runtime by the consumer. If you use SSR/SSG you could probably prevent this code from running on the client, but it would still run on the server at runtime/build time, respectively.