async config(config, configEnv) {
			// setup logger
			if (process.env.DEBUG) {
				log.setLevel('debug');
			} else if (config.logLevel) {
				log.setLevel(config.logLevel);
			}
			// @ts-expect-error temporarily lend the options variable until fixed in configResolved
			options = await preResolveOptions(inlineOptions, config, configEnv);
			// extra vite config
			const extraViteConfig = await buildExtraViteConfig(options, config);
			log.debug('additional vite config', extraViteConfig, 'config');
			return extraViteConfig;
		}
@type {import('./types/plugin-api.d.ts').PluginAPI}