Skip to content

Commit

Permalink
Update packages/kit/src/vite/plugin.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
  • Loading branch information
benmccann and Rich-Harris authored Jun 1, 2022
1 parent d59946b commit 4d60028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/vite/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { find_deps, get_default_config } from '../core/build/utils.js';
const cwd = process.cwd();

/**
* @param {import('types').ValidatedConfig} svelte_config
* @param {import('types').Config['kit']} svelte_config
* @return {import('vite').Plugin}
*/
export const sveltekit = function (svelte_config) {
export const sveltekit = function (svelte_config = {}) {
const build_dir = path.join(svelte_config.kit.outDir, 'build');
const output_dir = path.join(svelte_config.kit.outDir, 'output');
const client_out_dir = `${output_dir}/client/${svelte_config.kit.appDir}`;
Expand Down

0 comments on commit 4d60028

Please sign in to comment.