Skip to content

Make Vite a prod dep? #1239

@Conduitry

Description

@Conduitry

Is your feature request related to a problem? Please describe.
Given its active development, it seems reasonably likely that Vite will continue to add features that we'd like to make use of. Once we come out of beta and release SvelteKit 1.0, it will be a breaking change whenever we want to make use of a newer version of Vite - if it continues to be a peer dependency.

Describe the solution you'd like
If Vite (and possibly the Svelte-Vite plugin) were production dependencies of Kit, we could ensure that they are upgraded when someone upgrades Kit.

Describe alternatives you've considered
We could do nothing. There are several other places we use peer dependencies (like the Rollup plugin has a peer dependency on a certain minimum version of Svelte), but these don't need updating very often. Unless we wait ages for SvelteKit 1.0 for Vite to be more or less feature complete, it seems likely they'll add something we'd like to use.

How important is this feature to you?
I think it's fairly important to at least see what would be involved in doing this. I don't want major versions on Kit to bump excessively, and I don't want to be hobbled with supporting an old version of Vite.

Additional context
Not really. I guess doing this will make it a bit less clear to people how to upgrade only Vite without upgrading Kit, but that seems like a worthwhile tradeoff for all the flexibility this will afford us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / enhancementNew feature or requesthelp wantedPRs welcomed. The implementation details are unlikely to cause debate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions