perf: allow integrating more complex render solutions (#412)
This commit is contained in:
parent
19489a28c8
commit
52fce25787
|
@ -393,7 +393,7 @@ export function electronRendererVitePlugin(options?: ElectronPluginOptions): Plu
|
||||||
} else {
|
} else {
|
||||||
const targets = Array.isArray(build.target) ? build.target : [build.target]
|
const targets = Array.isArray(build.target) ? build.target : [build.target]
|
||||||
if (targets.some(t => !t.startsWith('chrome') && !/^es((202\d{1})|next)$/.test(t))) {
|
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.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue