Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove vite.config.js files #569

Merged
merged 7 commits into from
Mar 19, 2021
Merged

remove vite.config.js files #569

merged 7 commits into from
Mar 19, 2021

Conversation

Rich-Harris
Copy link
Member

Moves Vite config into svelte.config.cjs, per #509. For now it doesn't differentiate between the config requirements for different Vite builds, since that involves making API design decisions that might be premature.

It also allows config.kit.vite to be a simple object, since that will cover the majority of cases.

@@ -43,6 +43,7 @@ export type ValidatedConfig = {
pages: string[];
};
target: string;
vite: () => {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not used for user-facing types, so there's no need to say that vite may be an object instead of a function that returns one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not, it's just for validated config. Forgot to update the types for user-facing config. Done: f8f7e70

@Rich-Harris Rich-Harris merged commit ac3669e into master Mar 19, 2021
@Rich-Harris Rich-Harris deleted the gh-509 branch March 19, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants