S
SolidJS2y ago
Max

how come solid-js is devdependency for Solidstart

Hi just creating a new solid start project and noticed solid-js lists under dev dependencies and not dependencies, is it only needed during development ? And is this specific to solid start or a depends on how bundler is setup?
5 Replies
Max
MaxOP2y ago
Kind of got me wondering now, I have a package which is component library more less to use in solid start apps, if I should list solid-js as peer or dev dep. I'm guessing dev since its also dev in solid start
lxsmnsyc
lxsmnsyc2y ago
if you're working on a solidjs package, install it as a dev dependency then mark it as a peer dependency. if you made it a dependency, you'll potentially have multiple SolidJS copies, which leads to bugs
Max
MaxOP2y ago
Cool thanks! do you know how come solid start does not have solid-js as dependency but just dev?
lxsmnsyc
lxsmnsyc2y ago
exactly what I said, it needs to be a peer dependency, but also a dev so that it is recognized by the tools
Max
MaxOP2y ago
okay cool thanks
Want results from more Discord servers?
Add your server