Skip to content

All validation libraries from optional dependencies are installed in dev environmentΒ #351

Open
@vladshcherbin

Description

@vladshcherbin
  • Before posting an issue, read the FAQ and search the previous issues.

Description
Found in #350

Currently all validation libraries are installed even when they are not used (all optional dependencies).
This is not good for a lot of reasons - wasted space, traffic, package stats update, etc.

From referenced issue it's also visible that some bundlers (vite in my case) are trying to process/include this dependencies in the bundle which is also not desired.

You can see a massive library size increase: https://packagephobia.com/[email protected]

image

I've tried different combinations of commands with no luck to install only what I need:

yarn add sveltekit-superforms
yarn add sveltekit-superforms valibot
yarn add sveltekit-superforms -D
yarn add sveltekit-superforms valibot -D

A solution should be found on how to get only used packages πŸ€”

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlaterMay be worked on in the future.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions