async function load_config({ cwd = process.cwd() } = {}) {
	const config_file = path.join(cwd, 'svelte.config.js');

	if (!fs.existsSync(config_file)) {
		return {};
	}

	const module = await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
	const config = module.default;

	if (config.package) {
		throw new Error(
			'config.package is no longer supported. See https://github.com/sveltejs/kit/discussions/8825 for more information.'
		);
	}

	return config;
}
Loads and validates svelte.config.js
@param {{ cwd?: string }} options
@returns {Promise<import('./types.js').Options['config']>}