Skip to content

Commit

Permalink
Merge pull request #21339 from JustinEloffBBD/patch-1
Browse files Browse the repository at this point in the history
Svelte/Vite: Prevent crash when no svelte.config file
  • Loading branch information
shilman committed Mar 2, 2023
2 parents 70026ee + 5f214d0 commit 12e85cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/svelte-vite/src/plugins/svelte-docgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getNameFromFilename(filename: string) {
return base[0].toUpperCase() + base.slice(1);
}

export function svelteDocgen(svelteOptions: Record<string, any>): PluginOption {
export function svelteDocgen(svelteOptions: Record<string, any> = {}): PluginOption {
const cwd = process.cwd();
const { preprocess: preprocessOptions, logDocgen = false } = svelteOptions;
const include = /\.(svelte)$/;
Expand Down

0 comments on commit 12e85cb

Please sign in to comment.