Thursday 2 September 2021

Should a svelte package be a dependency or a devDependency?

I know that there are already a lot of posts concerning the distinction between dependency and devDependency but I didn't find any that explain it for the case of svelte so lets open this one here.

In most of the svelte package like svelte-material-ui or svelte-routing, the installation guide tell to install the package as a dependency. However since svelte will compile this package during the build time, the new library that will use it doesn't need to install this svelte package. So I don't see why it as to be a dependency.

Maybe this question is opinion based but would be nice to have at least a small idea of what to use.



from Should a svelte package be a dependency or a devDependency?

No comments:

Post a Comment