function enforceOptionsForHmr(options, viteConfig) {
	if (options.hot) {
		log.warn(
			'svelte 5 has hmr integrated in core. Please remove the vitePlugin.hot option and use compilerOptions.hmr instead'
		);
		delete options.hot;
		options.compilerOptions.hmr = true;
	}
	if (options.compilerOptions.hmr && viteConfig.server?.hmr === false) {
		log.warn(
			'vite config server.hmr is false but compilerOptions.hmr is true. Forcing compilerOptions.hmr to false as it would not work.'
		);
		options.compilerOptions.hmr = false;
	}
}
@param {import('../types/options.d.ts').ResolvedOptions} options
@param {import('vite').ResolvedConfig} viteConfig