Merge e5a4ff6c4e4fcff0315a7ae5ae186ff44e1165bc into a9197f5cc962425459acb5491d3a3915e404f79a

This commit is contained in:
Fynn Haupt 2025-05-08 23:39:34 +02:00 committed by GitHub
commit fd27d308da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -131,6 +131,7 @@ cli.command('build [root]', 'build for production').action(async (root: string,
try {
await build(inlineConfig)
process.exit(0)
} catch (e) {
const error = e as Error
createLogger(options.logLevel).error(colors.red(`error during build:\n${error.stack}`), { error })

View File

@ -342,8 +342,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
config(config): void {
const root = options?.root || process.cwd()
config.base =
config.mode === 'production' || process.env.NODE_ENV_ELECTRON_VITE === 'production' ? './' : config.base
config.base = config.base ?? './'
config.root = config.root || './src/renderer'
const chromeTarget = getElectronChromeTarget()