From cfe7349507dbfbe06500cbc241f51134f83c3673 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Fri, 16 Feb 2024 14:18:48 -0600 Subject: [PATCH] Allow integrating more complex render solutions --- src/plugins/electron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/electron.ts b/src/plugins/electron.ts index 3eb36d7..a799cc8 100644 --- a/src/plugins/electron.ts +++ b/src/plugins/electron.ts @@ -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.') } }