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
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
configFileoption should be supported.The
kitplugin does not currently accept any arguments and directly call theload_configfunctionkit/packages/kit/src/exports/vite/index.js
Lines 131 to 132 in dd5381a
The
load_configfunction accept some argumentskit/packages/kit/src/core/config/index.js
Line 64 in 5906e97
We could either
cwdargument withconfigFileconfigFileargument, throw error if cwd and configFile are providedAlternatives considered
N/A
Importance
i cannot use SvelteKit without it
Additional Information
Fixes #7717