async configResolved(config) {
			vite_config = config;
			for (const plugin of config.plugins || []) {
				if (plugin.name === name) {
					break;
				}
				if (plugin.name === 'vite-plugin-svelte') {
					throw new Error(
						'@sveltejs/enhanced-img must come before the Svelte or SvelteKit plugins'
					);
				}
			}
			svelte_config = await loadSvelteConfig();
			if (!svelte_config) throw new Error('Could not load Svelte config file');
		}
@type {Partial<import('@sveltejs/vite-plugin-svelte').SvelteConfig | undefined>}