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
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
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
Cool thanks!
do you know how come solid start does not have solid-js as dependency but just dev?
exactly what I said, it needs to be a peer dependency, but also a dev so that it is recognized by the tools
okay cool thanks