svelte-meta-tags icon indicating copy to clipboard operation
svelte-meta-tags copied to clipboard

trim production dependencies

Open ricardobeat opened this issue 1 year ago • 0 comments

Neither of schema-dts or svelte are used at runtime, but they end up in the production node_modules due to how peerDependencies are handled by npm.

  • schema-dts has typescript as a peerDependency
  • svelte is declared as a peerDependency

Both get installed with npm install --production even thought they are unused, and when used to build an image for deployment this means they add ~67MB dead weight.

ricardobeat avatar Aug 10 '22 17:08 ricardobeat