feat: add default value to options parameter in createServer to make it optional

This commit is contained in:
BaiYanchen 2025-09-23 11:36:50 +08:00
parent ad50cba495
commit 6cc2de7872

View File

@ -14,7 +14,7 @@ import { startElectron } from './electron'
export async function createServer( export async function createServer(
inlineConfig: InlineConfig = {}, inlineConfig: InlineConfig = {},
options: { rendererOnly?: boolean } options: { rendererOnly?: boolean } = {}
): Promise<void> { ): Promise<void> {
process.env.NODE_ENV_ELECTRON_VITE = 'development' process.env.NODE_ENV_ELECTRON_VITE = 'development'
const config = await resolveConfig(inlineConfig, 'serve', 'development') const config = await resolveConfig(inlineConfig, 'serve', 'development')