perf: allow integrating more complex render solutions (#412)

This commit is contained in:
Luke Hagar 2024-02-23 11:01:26 -06:00 committed by GitHub
parent 19489a28c8
commit 52fce25787
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.')
}
}