hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.33k stars 285 forks source link

what is "svelte-material-ui": "^7.0.0", #667

Open siddhsql opened 1 month ago

siddhsql commented 1 month ago

this is a question not a bug report. I am looking at an existing project and it has

"svelte-material-ui": "^7.0.0",

in dependencies. I am trying to understand if:

  1. is this needed since I don't find mention of it in the installation instructions?
  2. further is this supposed to be a dependency vs devDependency?
hperrin commented 1 month ago

That package just pulls in every other package. It's not necessary unless you need the bare.css file that has everything.

hperrin commented 1 month ago

So whether you use dependency or devDependency depends on your setup. For most Svelte projects, you'll use devDependency, since there's a build step that packages everything. But you may also need to use dependency if you need the bare.css files in your node_modules in production.