Allow integrating more complex render solutions

This commit is contained in:
Luke Hagar 2024-02-16 14:18:48 -06:00 committed by GitHub
parent 7f13ea2a84
commit cfe7349507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -393,7 +393,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
} else {
const targets = Array.isArray(build.target) ? build.target : [build.target]
if (targets.some(t => !t.startsWith('chrome') && !/^es((202\d{1})|next)$/.test(t))) {
throw new Error('The electron vite renderer config build.target must be "chrome?" or "es?".')
config.logger.warn('The electron vite renderer config build.target is not "chrome?" or "es?". This could be a mistake.')
}
}