Skip to content

allow passing configFile option to kit() in vite config #13748

@axel7083

Description

@axel7083

Describe the problem

Looking at the @sveltejs/vite-plugin-svelte plugin, we can define the configFile to use.

Describe the proposed solution

Similar to the options of the sveltejs plugin, the configFile option should be supported.

The kit plugin does not currently accept any arguments and directly call the load_config function

export async function sveltekit() {
const svelte_config = await load_config();

The load_config function accept some arguments

export async function load_config({ cwd = process.cwd() } = {}) {

We could either

  • replace the cwd argument with configFile
  • add an additional configFile argument, throw error if cwd and configFile are provided

Alternatives considered

N/A

Importance

i cannot use SvelteKit without it

Additional Information

Fixes #7717

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions