-
ContextWe recently created a new package called OptionsA. Make it a regular dependency🟢 Pros
🔴 Cons
B. Make it a peer dependency🟢 Pros
🔴 Cons
C. Make it a regular dependency and export all the icons from Primer Components🟢 Pros
🔴 Cons
Open questions
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think we should go with Option B! And it feels best to put the documentation for this in the Octicons docs, with a separate "how to use octicons with Primer Components" section in the Primer Components docs |
Beta Was this translation helpful? Give feedback.
-
+1 for Option B. I discovered this discussion in trying to diagnose why my build included 2 copies of octicons each weighing in at 250kb (my tree shaking setup was.. shaky). I was using v13 whereas components still depends on v11. Maybe dependabot can help keep the dependency evergreen ;) |
Beta Was this translation helpful? Give feedback.
I think we should go with Option B! And it feels best to put the documentation for this in the Octicons docs, with a separate "how to use octicons with Primer Components" section in the Primer Components docs