From c49068258d8cd99649e810e07b7148fb8dd85846 Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Tue, 27 Sep 2022 20:40:32 +0800 Subject: [PATCH] perf: build compatilibity target for Electron 21 --- src/plugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin.ts b/src/plugin.ts index be1e2f2..c6593a7 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -484,6 +484,7 @@ function getElectronMainVer(root: string): string { function getElectronNodeTarget(electronVer: string): string { const nodeVer = { + '21': '16.16', '20': '16.15', '19': '16.14', '18': '16.13', @@ -503,6 +504,7 @@ function getElectronNodeTarget(electronVer: string): string { function getElectronChromeTarget(electronVer: string): string { const chromeVer = { + '21': '106', '20': '104', '19': '102', '18': '100',